Last active
November 15, 2015 08:29
-
-
Save tobert/b249e55cc7e225bc5ad8 to your computer and use it in GitHub Desktop.
Docker w/ link-local API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a silly example for dinking around with the Docker API on a link-local dummy interface. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo modprobe dummy | |
sudo ip addr add 169.254.169.254/32 dev dummy0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl 169.254.169.254/containers/json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Docker Application Container Engine | |
Documentation=http://docs.docker.com | |
After=network.target | |
[Service] | |
ExecStart=/usr/bin/docker -d -H unix:///var/run/docker.sock -H tcp://169.254.169.254:80 | |
LimitNOFILE=1048576 | |
LimitNPROC=1048576 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment