New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker containers not reachable from host in rootless mode #43625
Comments
Expected behavior, because Rootless Docker is executed inside a dedicated network namespace and has no permission to set up "reachable" IP addresses. |
Alternatively you can use moby/contrib/dockerd-rootless.sh Line 12 in 8abb84c
|
Better yet... Is there some documentation that would allow us to reinstall a previous build of Docker that works? My Docker Swarm is down hard since I attempted to upgrade to the latest release. |
@SunSDSE I don't think there has been a version that supported this in rootless mode; is your issue related to rootless mode? |
For installing specific versions; the docker packages from download.docker.com are regular deb or rpm packages, and all releases can be found there (e.g. for ubuntu "focal"; https://download.docker.com/linux/ubuntu/dists/focal/pool/stable/amd64/) You can specify a version to install using the package manager you're using (which also allows downgrading with the right options set);
Take into account that a Docker installation consists of multiple packages (cli, engine, containerd, compose, etc.) each of which can be upgraded/downgraded individually. |
I ran into an odd problem where two nodes out of seven node swarm were downloading the armv7 images of InfluxDB, when all the nodes in the swarm are identical armv8 nodes. It was recommended to get current so I upgrade all my nodes to Debian GNU/Linux 11 (bullseye) then rebuilt the nodes using the get-docker.sh script. I found out that rootless would not bind to the service port 2377 on the advertised address unless run under sudo. So clearly this is not working right. After reading all these bugs for rootless (20.20.17) I figured I would just go back to the previous release. As my development environment is down. |
Docker containers not reachable from host in rootless mode
The IPs of docker containers aren't reachable from the outside when starting docker in rootless mode. The bridge docker0 with IP 172.17.0.1 can be pinged
could be pinged, but not the container with IP 172.17.0.3
Steps to reproduce the issue:
Describe the results you received:
ping 172.17.0.3
PING 172.17.0.3 (172.17.0.3) 56(84) bytes of data.
From 172.17.0.1 icmp_seq=1 Destination Host Unreachable
From 172.17.0.1 icmp_seq=2 Destination Host Unreachable
From 172.17.0.1 icmp_seq=3 Destination Host Unreachable
Describe the results you expected:
PING 172.17.0.3 (172.17.0.3) 56(84) bytes of data.
64 bytes from 172.17.0.3: icmp_seq=1 ttl=64 time=0.035 ms
64 bytes from 172.17.0.3: icmp_seq=2 ttl=64 time=0.071 ms
64 bytes from 172.17.0.3: icmp_seq=3 ttl=64 time=0.074 ms
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
ArchLinux Linux phantom 5.15.40-1-lts #1 SMP Sun, 15 May 2022 19:07:59 +0000 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: