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

Docker Studio - on VirtualBox, Docker /etc/hosts are reset at start, probably because v1.11 #126

Closed
mdutoo opened this issue Jun 14, 2016 · 1 comment
Labels

Comments

@mdutoo
Copy link

mdutoo commented Jun 14, 2016

Workaround : when a Container starts, copy / paste hosts manually in its /etc/hosts before the application reads it (!), using docker exec -it container_name /bin/bash and vi (requires to add it in the Docker image).

My VirtualBox VM is the standard Boot2Docker (1.11.1-rc1 (TCL 7.0); HEAD : 903a352 - Tue Apr 26 14:18:06 UTC 2016) created by the Docker Studio when using a VirtualBox Compute, which provides a Docker version (1.11.1-rc1, build c90c70c) that is way newer than what is advised (1.8.3.0).

When one of its Docker container is started, its /etc/hosts is reduced to itself (its IP & hostname). But on OW2's Open Stack infrastructure, it rightly contains also IPs & hostnames of all other containers within the VM (even if not linked together).

UPDATE: I've deleted my Boot2Docker 1.11 VM since I had downgraded to docker 1.8.3 since its creation back then and let the Docker Studio create a new one, but it's again 1.11 ! => so how to get an 1.8.3 Boot2Docker VM ???

@mdutoo
Copy link
Author

mdutoo commented Jul 7, 2016

Maybe it's not useful anyway since it should work WITHOUT hostnames being in /etc/hosts as said in #121 --add-host (the source container of a Docker link sees the host of its target container allright) ?

@mdutoo mdutoo closed this as completed Jul 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant