-
-
Save jameskyle/11055074 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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