Improved docker cleanup. (#568)

Improved docker cleanup.
Removing anonymous volumes associated with containers. 
Specifying the full name of the amn0 network interface to remove when cleaning the server.
This commit is contained in:
lunardunno 2024-02-09 17:00:44 +04:00 committed by GitHub
parent fec904fd28
commit dba05aab07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -1,2 +1,3 @@
sudo docker stop $CONTAINER_NAME
sudo docker rm -f $CONTAINER_NAME
sudo docker rm -fv $CONTAINER_NAME
sudo docker rmi $CONTAINER_NAME