Docker - Error connecting to host

    • OMV 2.x
    • Resolved
    • Docker - Error connecting to host

      I just installed the Docker GUI plugin but there seems to be a problem. The following error comes up after clicking on the Docker Service in the web frontend of OMV.

      Source Code

      1. Error: "couldn't connect to host" - Code: 7
      2. Error: "couldn't connect to host" - Code: 7
      3. Error: "couldn't connect to host" - Code: 7
      4. Error: "couldn't connect to host" - Code: 7
      5. Fehler #0:
      6. exception 'OMVModuleDockerException' with message 'Error: "couldn't connect to host" - Code: 7' in /usr/share/omvdocker/Utils.php:63
      7. Stack trace:
      8. #0 /usr/share/omvdocker/Utils.php(125): OMVModuleDockerUtil::doApiCall('http://localhos...')
      9. #1 /usr/share/openmediavault/engined/rpc/ OMVModuleDockerUtil::getImages('42005', true)
      10. #2 [internal function]: OMVRpcServiceDocker->getImages(Array, Array)
      11. #3 /usr/share/php/openmediavault/ call_user_func_array(Array, Array)
      12. #4 /usr/share/php/openmediavault/ OMVRpcServiceAbstract->callMethod('getImages', Array, Array)
      13. #5 /usr/sbin/omv-engined(500): OMVRpc::exec('Docker', 'getImages', Array, Array, 1)
      14. #6 {main}
      Display All
      I found someone had the same issue and was able to solve it by changing the port several times back and forth. It did not help me, yet.

      /etc/default/docker ist looking like this:

      Source Code

      1. # Customize location of Docker binary (especially for development testing).
      2. #DOCKERD="/usr/local/bin/dockerd"
      3. # Use DOCKER_OPTS to modify the daemon startup options.
      4. #DOCKER_OPTS="--dns --dns"
      5. # If you need Docker to use an HTTP proxy, it can also be specified here.
      6. #export http_proxy=""
      7. # This is also a handy place to tweak where Docker's temporary files go.
      8. #export TMPDIR="/mnt/bigdrive/docker-tmp"
      9. ### Do not change these lines. They are added and updated by the OMV Docker GUI plugin.
      10. OMVDOCKER_API="-H unix:///var/run/docker.sock -H tcp://"
      13. ### Do not add any configuration below this line. It will be removed when the plugin is removed
      Display All
      Docker is running

      $ sudo service docker status Docker is running.

      Is this correct for the daemon? Do I have to install something else than the docker GUI plugin for docker to be running?

      $ sudo docker ps -a

      The post was edited 5 times, last by bvrulez ().