Skip to content

Instantly share code, notes, and snippets.

@heme
Created January 21, 2016 03:44
Show Gist options
  • Save heme/f5495456a5f629157d90 to your computer and use it in GitHub Desktop.
Save heme/f5495456a5f629157d90 to your computer and use it in GitHub Desktop.
Sticky IP for docker machines
echo "kill `more /var/run/udhcpc.eth1.pid`\nifconfig eth1 192.168.99.101 netmask 255.255.255.0 broadcast 192.168.99.255 up" | docker-machine ssh MACHINE_NAME sudo tee /var/lib/boot2docker/bootsync.sh > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment