Skip to content

Issue on docker subnet  #12

@ghost

Description

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions