Skip to content

Instantly share code, notes, and snippets.

@edvinasbartkus
Created September 2, 2015 13:40
Show Gist options
  • Save edvinasbartkus/8ed0e61a7c7980c087f1 to your computer and use it in GitHub Desktop.
Save edvinasbartkus/8ed0e61a7c7980c087f1 to your computer and use it in GitHub Desktop.
coreos-cloud-config
#cloud-config
coreos:
etcd:
...
units:
- name: docker-tcp.socket
command: start
enable: true
content: |
[Unit]
Description=Docker Socket for the API
[Socket]
ListenStream=0.0.0.0:2375
BindIPv6Only=both
Service=docker.service
[Install]
WantedBy=sockets.target
- name: etcd.service
command: start
- name: fleet.service
command: start
write_files:
- path: /etc/systemd/system/docker.service.d/50-insecure-registry.conf
content: |
[Service]
Environment='DOCKER_OPTS=--insecure-registry="somehost.com:5000"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment