Docker Community Forums

Share and learn in the Docker community.

File /etc/sysconfig/docker is missing in Docker installation

docker

(Ppatierno) #1

Hello all,

I have Docker 1.12.1 installed from the official repo on my Fedora 24 distro. Up today I used it without problems.
Now, I need to use OpenShift origin with “oc cluster up” command and I need to modify the “/etc/sysconfig/docker” … but in my installation it isn’t there ! Why ?

I read the “Control and configure Docker with systemd” Docker doc page and checked that my file docker.service doesn’t have an EnvironmentFile property.

What’s the right way to fix my problem ? Just adding the EnvironmentFile property to the docker.service and create the /etc/sysconfig/docker file with the settings I need ?

I see that the docker.service is under three different locations which one I have to modify ?

etc/systemd/system
lib/systemd/system
usr/lib/systemd/system

Thanks,
Paolo.