1
0
mirror of https://github.com/docker/cli.git synced 2025-07-30 17:03:07 +03:00

Add --force option to network rm subcommand

The code is similar to that used by the volume rm subcommand, however,
one difference I noticed was VolumeRemove takes the force flag/option
was a parameter. This isn't the case for NetworkRemove.

To get NetworkRemove to take a similar parameter, this would require
modifying the Docker daemon. For now this isn't a route I wish to take
when the code can be arrange to mimic the same behavior.

Co-authored-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Conner Crosby <conner@cavcrosby.tech>
This commit is contained in:
Conner Crosby
2022-04-08 22:43:28 -04:00
committed by Sebastiaan van Stijn
parent 1a2daffc51
commit 0ea587b0d7
5 changed files with 128 additions and 5 deletions

View File

@ -15,7 +15,7 @@ Aliases:
rm, remove
Options:
--help Print usage
-f, --force Do not error if the network does not exist
```
## Description