Docker networking is like batteries included but removable/configurable.
Port checking
docker container port <container>Network driver
Built-in or 3rd party extensions that give you virtual network features.
Default is bridge network driver.
Networking commands
Find IP of a container
docker contianer inspect --format "{{NetworkSettings.IPAddress}}" <container id>Show networks
docker network lsInspect a network
docker network inspectCreate a new network
docker network create --driverConnect a container to a network
docker network connect [OPTIONS] NETWORK CONTAINERConnects a container to a network. You can connect a container by name or by ID. Once connected, the container can communicate with other containers in the same network.
Disconnect a network from container
docker network disconnectQuick questions
Q: If you wanted multiple containers to be able to communicate with each other on the same docker host, which network driver would you use? A: Use a custom bridge network for most use cases where you want inter-container communication on the same host.
