Skip to content

Instantly share code, notes, and snippets.

@marufshidiq
Created September 5, 2019 02:08
Show Gist options
  • Save marufshidiq/339cc0a14b58b6013bcb4772e0a90cdb to your computer and use it in GitHub Desktop.
Save marufshidiq/339cc0a14b58b6013bcb4772e0a90cdb to your computer and use it in GitHub Desktop.
#!/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