Skip to content

Instantly share code, notes, and snippets.

@wdullaer
Last active July 12, 2017 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wdullaer/204234f640731ae5a834871c1352c9a4 to your computer and use it in GitHub Desktop.
Save wdullaer/204234f640731ae5a834871c1352c9a4 to your computer and use it in GitHub Desktop.
Expose docker socket over unsecure TCP with systemd
#!/bin/bash
mkdir -p /etc/systemd/system/docker.service.d
cat <<EOF > /etc/systemd/system/docker.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2375
EOF
sudo systemctl daemon-reload
sudo service docker restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment