Docker service fails to start with error "following directives are specified both as a flag and in the configuration file"

Solution Verified - Updated -

Issue

  • Docker service fails with the following error:
level=fatal msg="unable to configure the Docker daemon with file /etc/docker/daemon.json: the following directives are specified both as a flag and in the configuration file: log-driver: (from flag: journald, from file: syslog)\n"
  • Not able to start docker daemon with error
level=fatal msg="unable to configure the Docker daemon with file /etc/docker/daemon.json

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Atomic Host
  • docker

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content