-
-
Save rafaelcalleja/4f982f099e173c2704dc83d0c658c9ad to your computer and use it in GitHub Desktop.
Turn on Docker Remote API on Ubuntu (on port 2375)
This file contains hidden or 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
| # File: etc/default/docker | |
| # Use DOCKER_OPTS to modify the daemon startup options. | |
| #DOCKER_OPTS="" | |
| DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4 -H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock" |
This file contains hidden or 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
| # File: /lib/systemd/system/docker.service | |
| ## Add EnviromentFile + add "$DOCKER_OPTS" at end of ExecStart | |
| ## After change exec "systemctl daemon-reload" | |
| EnvironmentFile=/etc/default/docker | |
| ExecStart=/usr/bin/dockerd -H fd:// $DOCKER_OPTS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment