Removing service for podman
This commit is contained in:
parent
92e33f62c5
commit
edee3fec10
1 changed files with 5 additions and 2 deletions
|
|
@ -1,4 +1,7 @@
|
|||
sudo systemctl disable --now container-$CONTAINER_NAME.service;\
|
||||
sudo docker stop $CONTAINER_NAME;\
|
||||
sudo docker rm -fv $CONTAINER_NAME && sudo rm -f $DOCKERFILE_FOLDER/container-$CONTAINER_NAME.service;\
|
||||
sudo docker --version 2>/dev/null | grep -q podman && \
|
||||
sudo systemctl disable --now container-$CONTAINER_NAME.service && \
|
||||
sudo systemctl daemon-reload && sudo systemctl reset-failed && \
|
||||
sudo rm -f $DOCKERFILE_FOLDER/container-$CONTAINER_NAME.service;\
|
||||
sudo docker rm -fv $CONTAINER_NAME;\
|
||||
sudo docker rmi $CONTAINER_NAME
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue