Skip to content

Instantly share code, notes, and snippets.

@huslage
Last active February 8, 2016 16:30
Show Gist options
  • Save huslage/8fc43087b3b5152e7253 to your computer and use it in GitHub Desktop.
Save huslage/8fc43087b3b5152e7253 to your computer and use it in GitHub Desktop.
MYIP=$(hostname -I | awk '{print $1}')
CONTROLLER=172.31.19.122
sudo docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock --name ucp docker/ucp engine-discovery -i -D --host-address ${MYIP} --controller ${CONTROLLER}
sudo systemctl restart docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment