Skip to content

Instantly share code, notes, and snippets.

@apatrushev
Created May 5, 2015 21:41
Show Gist options
  • Save apatrushev/2a83cc8d67f01fc5b281 to your computer and use it in GitHub Desktop.
Save apatrushev/2a83cc8d67f01fc5b281 to your computer and use it in GitHub Desktop.
#!/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