Is it possible to access a container IP outside the host?
I’m trying to assign IPs to my containers that are reachable on the network. I’ve first set up a network
docker network create --subnet 172.18.8.0/23 --gateway 172.18.8.1 docker-net
Then when I start my container I specify the network and IP
docker run --ti --net docker-net --ip 172.18.9.30 centos
I can ping the container from my host but nowhere else on the network.
I understand this has been asked before but remains unanswered