I'm having trouble debugging a docker issue. On my machine as host, every apt/apt-get/apt-cache command in the debian:jessie image hangs and I can't figure out why.
On other machines with docker, when I run (for example)
docker run --rm debian:jessie apt list
it takes a few seconds but then the list pops up. On my machine, it just hangs forever (> 30 minutes) and uses a full CPU core.
Any ideas on how to debug this problem?
I'm on a fedora 35 (x86_64) with recent and decent hardware. I've already
- tried to run different commands - all take a CPU core and freeze. I tried at least
apt update,apt upgrade,apt list,apt show apt,apt-cache showpkg aptand certainly a few more I can't remember - tried to disable selinux via
setenforce 0on the host, to no effect - tried to take the network away via the
--network nonearguments to docker, to no effect - updated my fedora host system, to no effect
- checked that the docker-ce version is the latest stable - it is
- tried it with
docker run --rm debian:latest apt list(i.e. the latest debian) - this works, but I need the old one (jessie, not latest) - tried to stop the fedora firewall via
systemctl stop firewalld.serviceand restart the docker daemon viasystemctl restart docker(thanks @rubynorails), to no effect
Any ideas on how to go from here?