Cannot ping since Docker 23 #45031
Labels
area/networking
kind/bug
Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
status/0-triage
version/23.0
Description
I just upgraded from Docker 20.x to 23.x, and now all my containers have lost their ability to ping to external IPv4 addresses.
They can ping to the host machine, any machine in the LAN, any external IPv6 address (for example ipv6.google.com), that all works fine. It's just outside IPv4 addresses that receive no response, even though internet is working fine for all other uses.
The containers are in bridge networking and the userland proxy is disabled.
Is there any explanation why this is happening?
Reproduce
docker run --rm -it alpine ping -c 1 8.8.8.8
Expected behavior
Receiving a reply
docker version
Client: Docker Engine - Community Version: 23.0.1 API version: 1.42 Go version: go1.19.5 Git commit: a5ee5b1 Built: Thu Feb 9 19:48:02 2023 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 23.0.1 API version: 1.42 (minimum version 1.12) Go version: go1.19.5 Git commit: bc3805a Built: Thu Feb 9 19:48:02 2023 OS/Arch: linux/amd64 Experimental: true containerd: Version: 1.6.18 GitCommit: 2456e983eb9e37e47538f59ea18f2043c9a73640 runc: Version: 1.1.4 GitCommit: v1.1.4-0-g5fd4c4d docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Additional Info
Internet is working fine from inside the container, its just the ICMP ping protocol that stopped functioning.
In the documentation about routing ping packets ( https://docs.docker.com/engine/security/rootless/#routing-ping-packets ) it says that you need to modify '/etc/sysctl.conf' to allow ping, but it made no difference for me. I am not even running in rootless mode, but it was worth a try since it describes my issue perfectly.
The text was updated successfully, but these errors were encountered: