Hi, I installed Docker on my Fedora 37 and the dns resolution does not work. Here’s the result when I try to build the zola deploy action:
Step 10/13 : RUN apt-get update && apt-get install -y wget git
---> Running in c3e563998b8e
Ign:1 http://deb.debian.org/debian stable InRelease
Ign:2 http://deb.debian.org/debian stable-updates InRelease
Ign:3 http://deb.debian.org/debian-security stable-security InRelease
Ign:1 http://deb.debian.org/debian stable InRelease
Ign:2 http://deb.debian.org/debian stable-updates InRelease
Ign:3 http://deb.debian.org/debian-security stable-security InRelease
Ign:1 http://deb.debian.org/debian stable InRelease
Ign:2 http://deb.debian.org/debian stable-updates InRelease
Ign:3 http://deb.debian.org/debian-security stable-security InRelease
Err:1 http://deb.debian.org/debian stable InRelease
Temporary failure resolving 'deb.debian.org'
Err:2 http://deb.debian.org/debian stable-updates InRelease
Temporary failure resolving 'deb.debian.org'
Err:3 http://deb.debian.org/debian-security stable-security InRelease
Temporary failure resolving 'deb.debian.org'
Reading package lists...
W: Failed to fetch http://deb.debian.org/debian/dists/stable/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/stable-updates/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian-security/dists/stable-security/InRelease Temporary failure resolving 'deb.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package wget
E: Unable to locate package git
The command '/bin/sh -c apt-get update && apt-get install -y wget git' returned a non-zero code: 100
I installed docker with dnf install docker
. The only way of making the dns resolution work I found is passing the --network host
parameter. With this parameter I can build the container manually, but it does not help in the real use I want to give docker, for a Forgejo runner. I need docker to work correctly without passing any extra parameter.
I never modified the docker configuration before getting this error. To try to fix it, I tried specifying the dns servers on /etc/docker/daemon.json, restarting docker, restarting the system, disabling dnsmasq, and putting DOCKER_OPTS="--dns 8.8.8.8 --dns 10.252.252.252"
on /etc/default/docker
. Nothing works.
I tried installing docker on another system with PopOS and worked out of the box. Does someone know what could be the problem?