I have created two docker networks
chnetwork
docker network create --subnet=172.19.0.0/16 chnetwork
Internal-network
docker network create --internal --subnet 10.1.1.0/24 internal-network
while create docker container I use chnetwork,
docker run -it -d --name containerone -h www.cone.net -v /var/www/html -p 3006:80 --net chnetwork --ip 172.19.0.40 --privileged magento
later I have changed to Internal-network and disconnect container from chnetwork
docker network connect internal-network containerone
docker network disconnect chnetwork containerone
now the problem is docker ps command does not display port of that container, I mean port is not accessible in internal-network.
when I change network to chnetwork that time only docker ps display ports. what I need to do for port is accessible in all the docker networks?