1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/docs/reference/commandline/network_prune.md
Gaetan de Villele 248c699ec8 fix frontmatter keywords value type (string, instead of []string) in /docs/reference
Signed-off-by: Gaetan de Villele <gdevillele@gmail.com>
2016-11-03 15:48:30 -07:00

1.1 KiB

title description keywords
network prune Remove unused networks network, prune, delete

network prune

Usage:	docker network prune [OPTIONS]

Remove all unused networks

Options:
  -f, --force   Do not prompt for confirmation
      --help    Print usage

Remove all unused networks. Unused networks are those which are not referenced by any containers.

Example output:

$ docker network prune
WARNING! This will remove all networks not used by at least one container.
Are you sure you want to continue? [y/N] y
Deleted Networks:
n1
n2