Forrest logo
back to the docker tool

docker:tldr:84f50

docker: Remove a space-separated list of unused networks.
$ docker network rm ${network_name}
try on your machine

The command "docker network rm ${network_name}" is used to remove a Docker network.

In the command, "${network_name}" is a placeholder for the actual name of the network you want to remove. You need to replace "${network_name}" with the name of the network you want to delete.

When executed, this command will remove the specified Docker network from your system. This means that any containers connected to that network will lose their network connection. Make sure to disconnect any containers from the network before removing it.

Note that only empty networks, i.e., networks without any connected containers, can be removed. If there are still containers connected to the network, you will need to disconnect them first or delete the containers before removing the network.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the docker tool