[Solved] Containers can't access bridge network and I can't ping containers from host

Hi!

Fresh docker 19.03.6 install on Centos 7.

After docker install, I installed portainer image. I can’t access portainer and I can’t ping the container IP address. I installed ubuntu/latest image and from that container, I can’t get out to Internet to update packages.

Something seems broken with my default bridge network and how containers access it.

On another similar configured system, everything just works.

How do I go about troubleshooting this?

Thanks,

Bobby

docker network ls

NETWORK ID NAME DRIVER SCOPE
61abb77e6476 bridge bridge local

docker inspect bridge
“Scope”: “local”,
“Driver”: “bridge”,
“Config”: [
{
“Subnet”: “172.18.0.1/16”,
“Gateway”: “172.18.0.1”
“Containers”: {
“2646cb714ff17fb463563cc482e51e9ab808b61a707571dd0c7299f335158c3a”: {
“Name”: “portainer”,
“EndpointID”: “1955cc4a52fa859753632276487a6b8494a16d164b1d16601d1ec6a4170ef1f7”,
“MacAddress”: “02:42:ac:12:00:02”,
“IPv4Address”: “172.18.0.2/16”,

ping 172.18.0.2

PING 172.18.0.2 (172.18.0.2) 56(84) bytes of data.

Hi!

Solved this problem by:

  • uninstalled docker
  • yum update my centos system
  • reboot
  • re-install docker
  • re-install container/image

Bobby