Skip to content

Instantly share code, notes, and snippets.

@jameskyle
Last active August 29, 2015 14:00
Show Gist options
  • Save jameskyle/11055074 to your computer and use it in GitHub Desktop.
Save jameskyle/11055074 to your computer and use it in GitHub Desktop.
cat<<-EOF > /etc/systemd/system/
[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.io
[Service]
ExecStartPre=/bin/mount --make-rprivate /
# Run docker but don't have docker automatically restart
# containers. This is a job for systemd and unit files.
ExecStart=/usr/bin/docker -d -s=btrfs -r=false --tlsverify --tlscacert=/var/ssl/ca.pem --tlscert=/var/ssl/server-cert.pem --tlskey=/var/ssl/server-key.pem -H fd://
#ExecStart=/usr/bin/docker -d -s=btrfs -r=false -H fd://
[Install]
WantedBy=multi-user.target
EOF
cat <<-EOF > /etc/systemd/system/docker-tcp.socket
[Unit]
Description=Docker Socket for the API
[Socket]
ListenStream=4243
Service=docker.service
BindIPv6Only=both
[Install]
WantedBy=sockets.target
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment