Skip to content

dns tcp udp network sometimes not working when docker pull or apt-get #1961

Open
@stonechen28

Description

@stonechen28

Discussed in #1960

Originally posted by stonechen1995 October 27, 2023
I used the docker-rootful.yml to build up the vm with the command below, against which my docker context is running.

limactl start ~/Downloads/docker-rootful.yaml --name docker --tty=false

And I run pull ubuntu, but the error message came up often. Not always, sometimes it worked, sometimes this error raised.

(base) sss@sss-mac test1 % docker pull ubuntu
Using default tag: latest
Error response from daemon: Get "<https://registry-1.docker.io/v2/>": dial tcp: lookup registry-1.docker.io on 127.0.0.53:53: read udp 127.0.0.1:41836->127.0.0.53:53: i/o timeout

If I ever successfully pulled it and ran it, I ran things below and I always get numerous ign message and never finish. It first successfully "get" a couple things, and then "ign" the rest.
I verified that the problem doesn't exist when I ran the same thing in engine hosted by docker-desktop.

root@b838b27d63ae:/usr/local/app # % apt-get -y update && apt-get -y install curl libncurses5 ibgtk2.0-0 libgtk2.0-dev
Get:118 <http://ports.ubuntu.com/ubuntu-ports> jammy-updates/main arm64 dpkg-dev all 1.21.1ubuntu2.2 [922 kB]
Get:119 <http://ports.ubuntu.com/ubuntu-ports> jammy/main arm64 build-essential arm64 12.9ubuntu3 [4740 B]
Get:120 <http://ports.ubuntu.com/ubuntu-ports> jammy/main arm64 libbrotli1 arm64 1.0.9-2build6 [314 kB]
Get:121 <http://ports.ubuntu.com/ubuntu-ports> jammy-updates/main arm64 libsasl2-modules-db arm64 2.1.27+dfsg2-3ubuntu1.2 [21.1 kB]
Get:122 <http://ports.ubuntu.com/ubuntu-ports> jammy-updates/main arm64 libsasl2-2 arm64 2.1.27+dfsg2-3ubuntu1.2 [55.6 kB]
Get:123 <http://ports.ubuntu.com/ubuntu-ports> jammy-updates/main arm64 libldap-2.5-0 arm64 2.5.16+dfsg-0ubuntu0.22.04.1 [181 kB]
Get:124 <http://ports.ubuntu.com/ubuntu-ports> jammy/main arm64 librtmp1 arm64 2.4+20151223.gitfa8646d.1-2build4 [59.2 kB]
Ign:125 <http://ports.ubuntu.com/ubuntu-ports> jammy-updates/main arm64 libssh-4 arm64 0.9.6-2ubuntu0.22.04.1
Ign:126 <http://ports.ubuntu.com/ubuntu-ports> jammy-updates/main arm64 libcurl4 arm64 7.81.0-1ubuntu1.14
Ign:127 <http://ports.ubuntu.com/ubuntu-ports> jammy-updates/main arm64 curl arm64 7.81.0-1ubuntu1.14
Ign:128 <http://ports.ubuntu.com/ubuntu-ports> jammy/main arm64 libdebhelper-perl all 13.6ubuntu1
Ign:129 <http://ports.ubuntu.com/ubuntu-ports> jammy/main arm64 libtool all 2.4.6-15build2
Ign:130 <http://ports.ubuntu.com/ubuntu-ports> jammy/main arm64 dh-autoreconf all 20
Ign:131 <http://ports.ubuntu.com/ubuntu-ports> jammy/main arm64 libarchive-zip-perl all 1.68-1
Ign:132 <http://ports.ubuntu.com/ubuntu-ports> jammy/main arm64 libsub-override-perl all 0.09-2
Ign:133 <http://ports.ubuntu.com/ubuntu-ports> jammy/main arm64 libfile-stripnondeterminism-perl all 1.13.0-1
Ign:134 <http://ports.ubuntu.com/ubuntu-ports> jammy/main arm64 dh-strip-nondeterminism all 1.13.0-1
Ign:135 <http://ports.ubuntu.com/ubuntu-ports> jammy/main arm64 libdw1 arm64 0.186-1build1
Ign:136 <http://ports.ubuntu.com/ubuntu-ports> jammy/main arm64 debugedit arm64 1:5.0-4build1

Any idea is appreciated!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions