Docker installation dns error

  • hello, when i try install docker i have this problem
    Docker storage :: /var/lib/docker
    Opt-out :: 1
    arch :: amd64
    option :: docker
    state :: install
    extras :: 5.2.4
    DNS error. Exiting ...
    Done.
    i am inexperienced and so please tell me what you need to understand mistake,thanks for help me.

  • Hi,


    i've the same exact problem...

    but the DNS is working correctly because the system is able, for example, to ping google.com ... so i'm not able to fix this.


    in my case, the installation is on a usb key (with flash plugin)


    There are an other way to fix this problem?

    i'm reading about manual installation, but it's clear that usually doing this i will mess up the system... since i'm a beginnner

  • more info is needed.


    eg: what version of OMV do you have?, what CPU do you use (AMD64 or Arch) ?, etc....


    and please post the exact message that is show when you try to instal dockerGUI

  • more info is needed.


    eg: what version of OMV do you have?, what CPU do you use (AMD64 or Arch) ?, etc....


    and please post the exact message that is show when you try to instal dockerGUI

    Thanks for the fast replay :-)


    OMV 5.4.0-1 Usul , installed on a 32gb usb key inside a Hp Proliant Microserver gen8 (2gb ram, intel celeron g1610t)


    This is the response when i try to install Docker from the omv-extras menu Gui

    Code
    Docker storage :: /var/lib/docker
    Agent port:: 8000
    Web port:: 9000
    Opt-out :: 1
    arch :: amd64
    option :: docker
    state :: install
    extras :: 5.3
    DNS error. Exiting ...
    Done.
  • UPDATE


    i've updated the whole system, tried many times to install from omv-extras GUI but the problem remains.

    The system is able to correctly ping websites, so the connection seem to work well.


    I can't find information about interaction between the scripts of the GUI or an eventually manual installation of docker, or just how to manually install a compatibile version with OMV.


    Sorry, i'm a beginner in this beautiful system... i'm reading a lot trying to fix this problems, but without success.


    it's possible that a LOCALE configuration problem can generate this DNS problem?

  • What is the output of: /usr/bin/host hub.docker.com

    Thanks for the reply!

    Here the response

    Code
    root@nasone:~# /usr/bin/host hub.docker.com
    hub.docker.com is an alias for elb-default.us-east-1.aws.dckr.io.
    elb-default.us-east-1.aws.dckr.io is an alias for us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com.
    us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com has address 54.164.28.179
    us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com has address 3.212.25.17
    us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com has address 3.221.200.233
    Host us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com not found: 3(NXDOMAIN)
  • And what is the output of echo $? right after running that command? The not found part makes me think it is returning a non-zero return code which prevents docker from being installed. But it also might prevent dockers from being downloaded because something in your networking/dns is doing something wrong.


    This is what it should look like:


    aaron@omv5dev:~$ /usr/bin/host hub.docker.com

    hub.docker.com is an alias for elb-default.us-east-1.aws.dckr.io.

    elb-default.us-east-1.aws.dckr.io is an alias for us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com.

    us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com has address 3.221.200.233

    us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com has address 3.212.25.17

    us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com has address 54.164.28.179

    aaron@omv5dev:~$ echo $?

    0

    omv 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • i tried using dhcp and manual configuration:

    - dhcp give me the address of the router to be DNS server

    - manual i put both the classic 8.8.8.8 and 8.8.4.4 for DNS addresses, or the router address

    but, nothing changes.


    here the entire code

    Code
    root@nasone:~# /usr/bin/host hub.docker.com
    hub.docker.com is an alias for elb-default.us-east-1.aws.dckr.io.
    elb-default.us-east-1.aws.dckr.io is an alias for us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com.
    us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com has address 54.164.28.179
    us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com has address 3.212.25.17
    us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com has address 3.221.200.233
    Host us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com not found: 3(NXDOMAIN)
    root@nasone:~# echo $?
    1
  • What is the output of:


    getent hosts hub.docker.com && echo $?

    getent hosts omv-extras.org && echo $?

    omv 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • this is the output


    Code
    root@nasone:~# getent hosts hub.docker.com && echo $?
    54.164.28.179 us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com hub.docker.com elb-default.us-east-1.aws.dckr.io
    3.221.200.233 us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com hub.docker.com elb-default.us-east-1.aws.dckr.io
    3.212.25.17 us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com hub.docker.com elb-default.us-east-1.aws.dckr.io
    0
    root@nasone:~# getent hosts omv-extras.org && echo $?
    64.52.87.112 omv-extras.org
    0


    thanks a lot

  • what i was doing wrog?

    There is something weird with your network that doesn't like resolving hub.docker.com using the host command. Switching to getent hosts works.

    omv 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Hi,

    Unfortunately same issue with the 5.3.6


    Docker storage :: /var/lib/docker

    Agent port:: 8000

    Web port:: 9000

    arch :: arm64

    option :: docker

    state :: install

    extras :: 5.3.6

    DNS error. Exiting ...

    Done.

  • Unfortunately same issue with the 5.3.6

    This really isn't a problem with omv-extras. If getent hosts hub.docker.com can't resolve the ip address, dns is not working on your system. What happens if you run the command from the command line?

    omv 5.5.17-3 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.2
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • I'm getting the same issue. I installed OMV-Extras via root like instructed. Whenever I install Docker it installs but then my DNS is messed up and I can't ping google.com. I have to uninstall Docker via omv-extras in order to do anything that would require outside connections (like pinging).


    Quote

    What is the output of: /usr/bin/host hub.docker.com

    Code
    jared@ROCK64:~$ /usr/bin/host hub.docker.com
    ;; connection timed out; no servers could be reached



    Quote

    What is the output of:


    getent hosts hub.docker.com && echo $?

    getent hosts omv-extras.org && echo $?

    Code
    Nothing. Returns empty.



    Again. I uninstall Docker and reboot and then I can ping and use apt update, etc.


    Possibly related to the issue. After running OMV-Extras script whenever I toggle any of the options (Backports, Extras Repo, Testing Repo) and click save there is a long wait time and then ends with a communication error.


    Running Armbian 20.8.1 Buster on Rock64

    Version 5.5.12-1 (Usul)

    Kernel Linux 5.8.16-rockchip64


    UPDATE: I started poking around on the dashboard and was going to report back how my system was setup as far as network connections go. However, when I checked there were no longer any network connections under the network tab. I manually setup eth0 again and now seems like we are back in business. It appears Docker install via OMV-Extras is killing network connections for some odd reason.


    UPDATE: Appears to be stable. Docker and Portainer both running and able to add other containers.

    Edited 4 times, last by jkindred: Update 1: Adding system information Update 2: Found possible solution Update 3: Seems Stable ().

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!