You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ChengRen (JIRA)" <ji...@apache.org> on 2015/07/14 09:43:04 UTC
[jira] [Created] (KARAF-3854) cellar bind docker container host
name but not the ip address
ChengRen created KARAF-3854:
-------------------------------
Summary: cellar bind docker container host name but not the ip address
Key: KARAF-3854
URL: https://issues.apache.org/jira/browse/KARAF-3854
Project: Karaf
Issue Type: Bug
Components: cellar-hazelcast
Affects Versions: cellar-3.0.3
Reporter: ChengRen
When I construct my local cellar cluster using docker container. I create two karaf image like:
docker run -ti -d -h node1 --name karaf-node1 -v ~/.m2/repository:/root/.m2/repository -d flaviof/karaf
after attach to it and install cellar(3.0.3) feature, command 'node-list' running result is:
karaf@root()> node-list
| Id | Host Name | Port
-----------------------------------------
x | node1:5701 | node1 | 5701
| 172.17.0.20:5701 | 172.17.0.20 | 5701
But when I change docker run command with:
docker run -ti -d -h 172.17.0.11 --name karaf-node1 -v ~/.m2/repository:/root/.m2/repository -d flaviof/karaf
where '172.17.0.11' does not exist. And command 'node-list' running result is:
karaf@root()> node-list
| Id | Host Name | Port
-----------------------------------------
x | 172.17.0.21:5701 | 172.17.0.21 | 5701
The last one is what I want.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)