title: Docker permission denied for open /etc/docker/daemon.json: permission denied
body: <p>I am trying to setup remote host configuration for docker. After setting up certificates i ran dockerd command which is giving error:</p>
  
  <pre><code>dockerd --tlsverify --tlscacert=ca.pem --tlscert=server-cert.pem --tlskey=server-key.pem   -H=0.0.0.0:2376
  
  &gt;&gt;&gt; unable to configure the Docker daemon with file /etc/docker/daemon.json: open /etc/docker/daemon.json: permission denied
  </code></pre>
  
  <p>I am running from non root user and I've already added my user as part of Docker group. Docker version i am using is:</p>
  
  <pre><code>Docker version 17.12.0-ce, build c97c6d6
  </code></pre>
  
  <p>I have tried below but still getting same error:</p>
  
  <pre><code>1. the /etc/docker/daemon.json file is having {}
  
  2. I also removed the /etc/docker/daemon.json
  
  3. I also changed ownership but same issue.
  </code></pre>
  
  <p>Permissions of daemon.json were: -rw-r--r-- </p>