Created
September 5, 2019 02:08
-
-
Save marufshidiq/339cc0a14b58b6013bcb4772e0a90cdb to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
sudo mkdir /etc/systemd/system/docker.service.d | |
sudo touch /etc/systemd/system/docker.service.d/startup_options.conf | |
cat <<EOT | sudo tee -a /etc/systemd/system/docker.service.d/startup_options.conf >&/dev/null | |
# /etc/systemd/system/docker.service.d/override.conf | |
[Service] | |
ExecStart= | |
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376 | |
EOT | |
sudo systemctl daemon-reload | |
sudo systemctl restart docker.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment