Skip to content
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

Not able to connect docker from host when network change #997

Closed
kusumat opened this issue Aug 11, 2017 · 4 comments
Closed

Not able to connect docker from host when network change #997

kusumat opened this issue Aug 11, 2017 · 4 comments

Comments

@kusumat
Copy link

kusumat commented Aug 11, 2017

Hi ,

I am not able to connect to docker container when there is network/ip change from office to home. But the same works with localhost or 127.0.0.1

I am connecting to VPN to connect to database.

Thanks,
Kusuma

@kusumat
Copy link
Author

kusumat commented Aug 11, 2017

root@1c970ed5cd64:/etc# curl http://localhost:8090/admin/health_check/all
{"health":"passed"}root@1c970ed5cd64:/etc# curl http://172.17.0.2:8090/admin/health_check/all
{"health":"passed"}root@1c970ed5cd64:/etc# curl http://192.168.0.103:8090/mfconsole/health_check/all
curl: (7) Failed to connect to 192.168.0.103 port 8090: Connection refused

@kusumat
Copy link
Author

kusumat commented Aug 12, 2017

When i update docker run like
docker run --net=10.10.33.33 --name $CONTAINER_NAME -d -p $INPUT_PORT:$INPUT_PORT -p $DEBUG_PORT:$DEBUG_PORT $IMAGE_NAME

C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: network 10.10.33.33 not found.
ERROR: Docker failed to run the mycontainer container !

@docker-robott
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants