I have two containers I've started as:
-name foo --hostname mynet.foo
-name bar --hostname bar
From foo container I can ping bar using ping bar but from bar container I only can ping foo container using ping foo (the container name). If I try to ping foo using ping mynet.foo I have a bad address: mynet.foo.
I need to refer the hosts as the --hostname value not the -name value.
From this: the --hostname is the local hostname of the container (i.e. the one it sees itself). Insane!