title: Unable to restart and remove Docker from Applications in Mac : Fatal Error failed to ping backend api
body: <p>I suddenly got the <code>fatal error</code> message from Docker yesterday.  I really don't understand why as I shut down my machine properly.   So I decided to uninstall docker and reinstall it.  I went into the Applications folder in my Mac and I can't uninstall because it thinks the docker is open.  So I need help with the following:</p>
  <ol>
  <li>how do I uninstall docker?</li>
  <li>how do I install it so it can start working again?</li>
  </ol>
  <p>Attempts at a resolution:</p>
  <p>Just tried the following command in my terminal:</p>
  <pre><code>docker kill $(docker ps -q)
  </code></pre>
  <p>I got the following response:</p>
  <pre><code>Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
  &quot;docker kill&quot; requires at least 1 argument.
  See 'docker kill --help'.
  </code></pre>
  <p>What do I do?</p>
  <p>See the screen shot</p>
  <p><a href="https://i.stack.imgur.com/bGsba.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/bGsba.jpg" alt="enter image description here" /></a></p>