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

Issue on docker subnet #12

Open
ghost opened this issue Nov 8, 2019 · 1 comment
Open

Issue on docker subnet #12

ghost opened this issue Nov 8, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 8, 2019

In some place, the host main network is on subnet 172.16.0.0 which is the one used by docker.
If the docker network is not updated it can cause some trouble when you try to access servers outside of the host and on the subnet 172.16.0.0.

The solution is to create/update /etc/docker/daemon.json and define as follow :

{
  "bip": "{anotherSubnett}/16"
}

Then you need to restart docker and then the subnet is updated.

Therefore, it is recommended to do it before launching any container (with or without docker-compose) otherwise, you will need to manually recreate every network (by adding --recreate to docker-compose up for example)

@Toilal
Copy link
Contributor

Toilal commented Apr 20, 2020

Maybe we could create a FAQ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant