The Commands
This lesson lists all the relevant Docker network commands with brief reminders of what each one does.
We'll cover the following
The summary of commands for Docker Networking
Docker networking has its own docker network
sub-command, and the main commands include:
docker network ls
lists all the Docker networks available to the host.docker network create
is how you create a new Docker network. You have to give the network a name and you can use the-d
flag to specify which driver creates it.docker network inspect
provides detailed configuration information about Docker networks.docker network prune
deletes all unused networks on a Docker host.docker network rm
Deletes specific networks on a Docker host or swarm.
Get hands-on with 1300+ tech skills courses.