Connect reconnect docker container

To see what network(s) your container is on
docker inspect container_name -f "{{json .NetworkSettings.Networks }}"

To disconnect your container from the first network

docker network disconnect test-net container_name

Then reconnect it to another network

docker network connect test-net-2 container_name

 













Leave a Reply

Your email address will not be published. Required fields are marked *