Skip to content

Instantly share code, notes, and snippets.

@tnaoto
Created December 23, 2014 14:38
Show Gist options
  • Save tnaoto/21ee77fdf8ce3d37ce1c to your computer and use it in GitHub Desktop.
Save tnaoto/21ee77fdf8ce3d37ce1c to your computer and use it in GitHub Desktop.
#cloud-config
coreos:
units:
- name: docker-tcp.socket
command: start
enable: yes
content: |
[Unit]
Description=Docker Socket for the API
[Socket]
ListenStream=2375
BindIPv6Only=both
Service=docker.service
[Install]
WantedBy=sockets.target
- name: enable-docker-tcp.service
command: start
content: |
[Unit]
Description=Enable the Docker Socket for the API
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl enable docker-tcp.socket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment