Docker Kata 5: Docker Networking

Learn how to list containers, ping between containers, create a user-defined network, and run containers on the network.

Docker uses software-defined networking to provide containers with a means to connect to a network. Software-defined networking uses software, instead of physical devices such as hardware load balancers and routers, to define a TCP/IP network. The Docker Engine provides a set of predefined networks on which to run containers. Administrators can also define custom networks to support a wide variety of network configurations. This kata will demonstrate how to work with Docker networks.

Step 1: List all networks

First, stopstop and removeremove all the containers.

The command to list all Docker networks is given below.

Get hands-on with 1200+ tech skills courses.