From a6b3dc088b186db8a43349dc86853c35b1b05530 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 Jun 2022 08:22:39 +0200 Subject: Renaming force option in container stop command to kill in order to properly separate the three different stop modi (interactive, force, kill). Signed-off-by: Daniel Baumann --- share/bash-completion/container | 2 +- share/man/container-stop.1.rst | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'share') diff --git a/share/bash-completion/container b/share/bash-completion/container index e08b7f8..5b57193 100644 --- a/share/bash-completion/container +++ b/share/bash-completion/container @@ -257,7 +257,7 @@ _container() ;; *) - opts="-n --name -f --force -i --interactive" + opts="-n --name -f --force -i --interactive -k --kill" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; diff --git a/share/man/container-stop.1.rst b/share/man/container-stop.1.rst index 567b2f4..bf668be 100644 --- a/share/man/container-stop.1.rst +++ b/share/man/container-stop.1.rst @@ -49,11 +49,14 @@ The following **container stop** options are available: Specify container name. Specifying 'ALL' will stop all started container. -f, --force: - Instead of running the proper shutdown sequence, terminate all processes of the container imediatly. + Do not prompt before every stopping. -i, --interactive: Prompt before every stopping (default). +-k, --kill: + Instead of running the proper shutdown sequence, terminate all processes of the container imediatly. + -v, --verbose: Explain what is being done. @@ -64,9 +67,13 @@ Shutdown example.net container: sudo container stop -n example.net +Shutdown example.net container without prompting: + + sudo container stop -n example.net -f + Immediately stop example.net container: - sudo container stop -n example.net -f + sudo container stop -n example.net -k Stop all container: -- cgit v1.2.3