From 76b01bc09a3a5d06f90ad401fe7632c230a22c8b Mon Sep 17 00:00:00 2001 From: lunardunno <126363523+lunardunno@users.noreply.github.com> Date: Sun, 21 Jul 2024 07:49:08 +0400 Subject: [PATCH] removing service for podman --- client/server_scripts/remove_container.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/server_scripts/remove_container.sh b/client/server_scripts/remove_container.sh index 3e894e8f..315717e2 100644 --- a/client/server_scripts/remove_container.sh +++ b/client/server_scripts/remove_container.sh @@ -1,3 +1,4 @@ +sudo systemctl disable --now container-$CONTAINER_NAME.service;\ sudo docker stop $CONTAINER_NAME;\ -sudo docker rm -fv $CONTAINER_NAME;\ +sudo docker rm -fv $CONTAINER_NAME && sudo rm -f $DOCKERFILE_FOLDER/container-$CONTAINER_NAME.service;\ sudo docker rmi $CONTAINER_NAME