DevOps Training » Docker » Docker Network

docker run -dit --name alpine1 alpine ash
docker run -dit --name alpine2 alpine ash

Whenever we create a container it gets attached into this default network Name: Bridge , Driver: Bridge
docker attach alpine1 and do ifconfig to inspectping container_name does not work (You can achive this by creating a user defined network)Ctrl+P+Q to exit the container withough stoping it.
docker container stop alpine1 alpine2
docker container rm alpine1 alpine2
Bridge or Host type use defined network