Can't connect container by name
by Uwe Reh
Hi,
I'm trying to migrate a small set of containers from Docker to Podman.
Obviously I missed one or two links, because I can't get the ensemble
run, like I'm used to.
*Problem:
Having two containers, C1 and C2.
Running on Docker, the containers can establish bridged IP4 connections
on each other byIp and byName. With podman it works fine with IP's
(found with podman inspect) but I wasn't able to resolve any name.
> podman exec -it C1 ping 10.88.0.7
> PING 10.88.0.7 (10.88.0.7): 56 data bytes
> 64 bytes from 10.88.0.7: seq=0 ttl=64 time=0.105 ms
> podman exec -it C1 ping C2
> ping: bad address 'C2'
*Question:
What have I missed to have dynamic DNS service for the containers inside
the bridge or slirp4netns?
*Runtime:
> podman version
> Version: 1.4.4
> RemoteAPI Version: 1
> Go Version: go1.12.6
> OS/Arch: linux/amd64
on
> cat /etc/os-release
> NAME="openSUSE Leap"
> VERSION="15.0"
> ID="opensuse-leap"
Uwe
5 years, 3 months