-
Notifications
You must be signed in to change notification settings - Fork 18.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't access container IPs from oustide the host machine #34164
Comments
So it turned out that i needed to do |
Yes, the default forwarding policy changed to This is not a bug, so I'll close this issue, but feel free to continue the conversation |
As described in the description, i am doing |
If you're connecting to the container directly, there's no need to use |
I am not connecting to it directly, i want to connect on the virtual ip from an oustide host on the same network. i want to do ssh user@virtualipOfTheContainer -p 10050 from an outside host. |
Description
I am launching a new docker container app, inside the container ifconfig is giving this.
ifconfig on the host is giving this:
Describe the results you received:
I am perfectly able to ping the docker container adresses (10.50.0.2, 10.50.1.1..) form the host (10.250.1.49 ip) now i am trying to ping those adresses from other machines on the same network (10.250.0.0) as the host. So on each of these machine i am adding a route to 10.50.0.0/16 network by the gw 10.250.1.49. But i am not absle to poing 10.50.0.2 and 10.50.1.1..etc. Why is that ?
here is the network of the conatiner using the inspect command
I am trying to ping because i want to ssh ip adress of the conatiner using port 10050 and cannot do that.
This is the command i use to start the container
docker run --privileged -h inttestssim -p $simsshserverport:$simsshserverport -p $simadminport:$simadminport --network=$simnetworkname --network-alias=$simnetworkname -e "setupInterfaceArgs=$setupInterfaceArgs" -e "simnetworkips=$simnetworkips" -e "simnetworkname=$simnetworkname" -e "simconfigdir=$simconfigdir" -e "simsshserverport=$simsshserverport" -e "simadminport=$simadminport" -e "simportbase=$simportbase" -v $simconfigdir:/home/visionems/DEV/simulator --name=$simcontainername $SIMULATOR_IMAGE_TAG
simsshserverport being 10050.
i am using Docker ce 17.06 and ubuntu 16.04
The text was updated successfully, but these errors were encountered: