Jul 23, 2024
ip addr show shows loopback and main network interface. Post-install, Docker adds docker0 virtual bridge interface.docker network ls lists networks, docker run launches containers, docker network inspect bridge inspects networks.docker run -dit --rm --name <name> <image> to deploy containers. Containers get virtual interfaces connected to docker0 bridge.-p option while deploying containers to access services from the host network.docker network create <name>.docker run --network <network_name> to deploy containers to this network.--network host without port exposure.docker network create -d macvlan --subnet=<subnet> --gateway=<gateway> -o parent=<interface>.--ipvlan-l3 options for creating an L3 network.--network none to create containers with no network access, only loopback interface.