title: docker.errors.DockerException: Error while fetching server API version
body: <p>I want to install this module but there is something wrong when I try the step <code>docker-compose build ...</code></p>
  <p>I tried to update the Docker version and restart Docker many times. But it didn't work.</p>
  <pre><code>git clone https://github.com/uhh-lt/158.git
  cd 158
  docker-compose build
  </code></pre>
  <pre><code>File &quot;/home/ming/.local/bin/docker-compose&quot;, line 8, in &lt;module&gt;
      sys.exit(main())
    File &quot;/home/ming/.local/lib/python3.8/site-packages/compose/cli/main.py&quot;, line 67, in main
      command()
    File &quot;/home/ming/.local/lib/python3.8/site-packages/compose/cli/main.py&quot;, line 123, in perform_command
      project = project_from_options('.', options)
    File &quot;/home/ming/.local/lib/python3.8/site-packages/compose/cli/command.py&quot;, line 60, in project_from_options
      return get_project(
    File &quot;/home/ming/.local/lib/python3.8/site-packages/compose/cli/command.py&quot;, line 131, in get_project
      client = get_client(
    File &quot;/home/ming/.local/lib/python3.8/site-packages/compose/cli/docker_client.py&quot;, line 41, in get_client
      client = docker_client(
    File &quot;/home/ming/.local/lib/python3.8/site-packages/compose/cli/docker_client.py&quot;, line 170, in docker_client
      client = APIClient(**kwargs)
    File &quot;/home/ming/.local/lib/python3.8/site-packages/docker/api/client.py&quot;, line 188, in __init__
      self._version = self._retrieve_server_version()
    File &quot;/home/ming/.local/lib/python3.8/site-packages/docker/api/client.py&quot;, line 212, in _retrieve_server_version
      raise DockerException(
  docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
  </code></pre>
  <h4>Update 2020-11-23</h4>
  <p>Thanks for two of you helping me with the error! I tried the commend but can't connect to my Docker:</p>
  <pre><code>ming@KITM-7664:~$ sudo /etc/init.d/docker start
  [sudo] password for ming:
   * Starting Docker: docker                                                                                       [ OK ]
  
  ming@KITM-7664:~$ which docker
  /usr/bin/docker
  
  ming@KITM-7664:~$ docker version
  Client: Docker Engine - Community
   Version:           19.03.13
   API version:       1.40
   Go version:        go1.13.15
   Git commit:        4484c46d9d
   Built:             Wed Sep 16 17:02:52 2020
   OS/Arch:           linux/amd64
   Experimental:      false
  Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
  
  ming@KITM-7664:~$ systemctl status docker
  System has not been booted with systemd as init system (PID 1). Can't operate.
  Failed to connect to bus: Host is down
  
  ming@KITM-7664:~$ systemctl start docker
  System has not been booted with systemd as init system (PID 1). Can't operate.
  Failed to connect to bus: Host is down
  
  ming@KITM-7664:~$ sudo /etc/init.d/docker start
   * Starting Docker: docker                                                                                       [ OK ]
  
  ming@KITM-7664:~$ docker version
  Client: Docker Engine - Community
   Version:           19.03.13
   API version:       1.40
   Go version:        go1.13.15
   Git commit:        4484c46d9d
   Built:             Wed Sep 16 17:02:52 2020
   OS/Arch:           linux/amd64
   Experimental:      false
  Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
  </code></pre>