karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (KARAF-3854) cellar bind docker container host name but not the ip address
Date Wed, 10 May 2017 13:29:04 GMT

     [ https://issues.apache.org/jira/browse/KARAF-3854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Baptiste Onofré resolved KARAF-3854.
-----------------------------------------
    Resolution: Cannot Reproduce

I'm not able to reproduce what you describe using Cellar 4.0.x/4.1.x on docker (I created
a custom Karaf distribution embedding Cellar).

> 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
>            Assignee: Jean-Baptiste Onofré
>
> 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.15#6346)

Mime
View raw message