From 8ae132cc49e9f4a11a22ca9eba78731f9c1c7153 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 1 Sep 2022 16:29:41 +0200 Subject: [PATCH] contrib: add "reset" command to "nm-in-container.sh" It's between "stop" and "clean". It removes the container, but keeps the container images. This is to fast restart without rebuilding the container (image). --- contrib/scripts/nm-in-container.sh | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/contrib/scripts/nm-in-container.sh b/contrib/scripts/nm-in-container.sh index 28fa58b42..efa06fd6d 100755 --- a/contrib/scripts/nm-in-container.sh +++ b/contrib/scripts/nm-in-container.sh @@ -6,12 +6,13 @@ set -e # Script to create a podman container for testing NetworkManager. # # Commands: -# - build: build a new image, named "$CONTAINER_NAME_REPOSITORY:$CONTAINER_NAME_TAG" ("nm:nm") -# - run: start the container and tag it "$CONTAINER_NAME_NAME" ("nm") -# - exec: run bash inside the container -# - journal|j: print the journal from inside the container -# - stop: stop the container -# - clean: delete the container and the image. +# - build: build a new image, named "$CONTAINER_NAME_REPOSITORY:$CONTAINER_NAME_TAG" ("nm:nm"). +# - run: start the container and tag it "$CONTAINER_NAME_NAME" ("nm"). +# - exec: run bash inside the container (this is the default). +# - journal|j: print the journal from inside the container. +# - stop: stop the container. +# - reset: stop and delete the container. +# - clean: stop and delete the container and the image. # # Options: # --no-cleanup: don't delete the CONTAINERFILE and other artifacts @@ -41,7 +42,7 @@ EXEC_ENV=() usage() { cat <