Created
May 5, 2015 21:41
-
-
Save apatrushev/2a83cc8d67f01fc5b281 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 | |
cat <<EOF >/etc/systemd/system/docker-tcp.socket | |
[Unit] | |
Description=Docker Socket for the API | |
[Socket] | |
ListenStream=2375 | |
BindIPv6Only=both | |
Service=docker.service | |
[Install] | |
WantedBy=sockets.target | |
EOF | |
systemctl enable docker-tcp.socket | |
systemctl stop docker | |
systemctl start docker-tcp.socket | |
systemctl start docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment