Skip to content

Instantly share code, notes, and snippets.

@waltervargas
Created April 9, 2017 18:06
Show Gist options
  • Save waltervargas/e72a3d207923ade03afd123b10b7c00e to your computer and use it in GitHub Desktop.
Save waltervargas/e72a3d207923ade03afd123b10b7c00e to your computer and use it in GitHub Desktop.
Docker TCP Socket with Systemd
# File: /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
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