Docker Community Forums

Share and learn in the Docker community.

New style "docker daemon" doesn't like /etc/sysconfig/docker config file


(Chris Wolf) #1

I recently upgraded my OS from RHEL6 to RHEL7 and Docker from 1.7 to 1.8. Now I can’t start docker via “service docker start”. First, I found I needed to change “other_args” to “OPTIONS”, but then I still get this error in the log:

systemd[1]: Starting Docker Application Container Engine…
docker[21858]: docker: “daemon” requires 0 arguments.
docker[21858]: See ‘/usr/bin/docker daemon --help’.
docker[21858]: Usage: docker daemon [OPTIONS]
docker[21858]: Enable daemon mode
systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
systemd[1]: Failed to start Docker Application Container Engine.
systemd[1]: Unit docker.service entered failed state.
systemd[1]: docker.service failed.
systemd[1]: docker.service holdoff time over, scheduling restart.
systemd[1]: start request repeated too quickly for docker.service
systemd[1]: Failed to start Docker Application Container Engine.
systemd[1]: Unit docker.service entered failed state.
systemd[1]: docker.service failed.

My /etc/sysconfig/docker file is:

OPTS="$OPTS --dns 8.8.8.8 --dns 8.8.4.4 “
OPTS=”$OPTS -H tcp://0.0.0.0:7070 -H unix:///var/run/docker.sock “
OPTS=”$OPTS --insecure-registry mylocalreg.someco.com:5000
OPTIONS=”-D $OPTS"

BTW, with older docker that last line was:
other_args="-D $OPTS"

I can run docker from the command line with all the same args with no problem. Any ideas?