Skip to content

Instantly share code, notes, and snippets.

@vyo
Created February 14, 2018 16:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save vyo/2fe31fb95a9d7bd7196f792fa0cb7119 to your computer and use it in GitHub Desktop.
systemd service file for Docker on Centos 7 (custom data directory)
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -g /data/docker \
--add-runtime docker-runc=/usr/libexec/docker/docker-runc-current \
--default-runtime=docker-runc \
--exec-opt native.cgroupdriver=systemd \
--userland-proxy-path=/usr/libexec/docker/docker-proxy-current
@vyo
Copy link
Author

vyo commented Feb 14, 2018

if you are stuck with a corporate proxy environment (Corpxe TM) add your proxy env vars, too:

Environment="HTTP_PROXY=http://IP:PORT"
Environment="HTTPS_PROXY=http://IP:PORT"
Environment="http_proxy=http://IP:PORT"
Environment="https_proxy=http://IP:PORT"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment