Skip to content

Instantly share code, notes, and snippets.



Last active Jan 9, 2018
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=" (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.


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