Docker Community Forums

Share and learn in the Docker community.

CentOS7 & RHEL7: /usr/lib/systemd/system/docker.service


(Staale Lorentzen) #1

Hi.
I’m using the newly created yum repository for CentOS 7 at “yum.dockerproject.org”.
The rpm contains both “/usr/lib/systemd/system/docker.service” and “/etc/sysconfig/docker”,
but to make the latter be read by docker, you need to rewrite the former like this:

[Service]
EnvironmentFile=-/etc/sysconfig/docker
ExecStart=/usr/bin/docker -d -H fd:// $other_args

Why not include this change from the RPM instead?