Type Of Networks In Docker
- Bridge: If you build a container without specifying the kind of driver, the container will only be created in the bridge network, which is the default network.
- Host: Containers will not have any IP address they will be directly created in the system network which will remove isolation between the docker host and containers.
- None: IP addresses won’t be assigned to containers. These containments are not accessible to us from the outside or from any other container.
- Overlay: An overlay network will enable the connection between multiple Docker demons and make different Docker swarm services communicate with each other.
- IPvlan: Users have complete control over both IPv4 and IPv6 addressing by using the IPvlan driver.
- Macvlan: macvlan driver makes it possible to assign MAC addresses to a container.
Read – Docker Networking
What Is Docker Network Inspect ?
“docker network inspection” is the command used in the docker CLI to know the detailed information of a particular docker network. Docker network allows you to inspect the configuration and status of a specific Docker network in which you can find the IP address assigned to the docker network the containers connected and other docker network settings.