Skip to content

Instantly share code, notes, and snippets.

@JPustkuchen

JPustkuchen/README.md

Last active Jan 9, 2018
Embed
What would you like to do?
[Docker set default binding IP e.g. for links in portainer] #docker

cd /etc/default/docker (if not existing, create the file)

Add the following line (or the --ip=... part if already existing):

DOCKER_OPTS="--ip=192.168.123.123" (Your docker host IP)

Restart docker: systemctl stop docker systemctl start docker

Don't forget to ensure that the docker host always receives the same IP.

See: https://docs.docker.com/engine/reference/commandline/dockerd/#options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment