Last active
July 12, 2017 16:37
-
-
Save wdullaer/204234f640731ae5a834871c1352c9a4 to your computer and use it in GitHub Desktop.
Expose docker socket over unsecure TCP with systemd
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 | |
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