2015-10-18 23:47:32 +00:00
|
|
|
% DOCKER(1) Docker User Manuals
|
|
|
|
% Docker Community
|
|
|
|
% OCT 2015
|
|
|
|
# NAME
|
2015-10-29 16:10:20 +00:00
|
|
|
docker-network-rm - remove one or more networks
|
2015-10-18 23:47:32 +00:00
|
|
|
|
|
|
|
# SYNOPSIS
|
2015-10-29 16:10:20 +00:00
|
|
|
**docker network rm**
|
2015-10-18 23:47:32 +00:00
|
|
|
[**--help**]
|
2015-10-29 16:10:20 +00:00
|
|
|
NETWORK [NETWORK...]
|
2015-10-18 23:47:32 +00:00
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
2015-10-29 16:10:20 +00:00
|
|
|
Removes one or more networks by name or identifier. To remove a network,
|
|
|
|
you must first disconnect any containers connected to it.
|
|
|
|
To remove the network named 'my-network':
|
2015-10-18 23:47:32 +00:00
|
|
|
|
2015-10-29 16:10:20 +00:00
|
|
|
```bash
|
2015-10-18 23:47:32 +00:00
|
|
|
$ docker network rm my-network
|
|
|
|
```
|
|
|
|
|
2015-10-29 16:10:20 +00:00
|
|
|
To delete multiple networks in a single `docker network rm` command, provide
|
2016-02-25 01:48:21 +00:00
|
|
|
multiple network names or ids. The following example deletes a network with id
|
2015-10-29 16:10:20 +00:00
|
|
|
`3695c422697f` and a network named `my-network`:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ docker network rm 3695c422697f my-network
|
|
|
|
```
|
|
|
|
|
|
|
|
When you specify multiple networks, the command attempts to delete each in turn.
|
|
|
|
If the deletion of one network fails, the command continues to the next on the
|
|
|
|
list and tries to delete that. The command reports success or failure for each
|
|
|
|
deletion.
|
|
|
|
|
2015-10-18 23:47:32 +00:00
|
|
|
# OPTIONS
|
|
|
|
**NETWORK**
|
2015-10-29 16:10:20 +00:00
|
|
|
Specify network name or id
|
2015-10-18 23:47:32 +00:00
|
|
|
|
|
|
|
**--help**
|
|
|
|
Print usage statement
|
|
|
|
|
|
|
|
# HISTORY
|
|
|
|
OCT 2015, created by Mary Anthony <mary@docker.com>
|