Skip to content

Commit

Permalink
Update appendix.rst
Browse files Browse the repository at this point in the history
Found that if docker.socket is also stopped, the service won't unexpectedly start backup.
  • Loading branch information
waldo323 authored Mar 12, 2024
1 parent e9b3a09 commit cd40c1f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions appendix.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,17 @@ Disable services and reboot:
Make sure docker containers are stopped:
::

sudo su -c "systemctl stop docker"
sudo su -c "systemctl stop docker docker.socket"
sudo docker ps

If there are any remaining docker processes, stop them (replacing ``$CONT_ID`` with the actual ID):
::

sudo docker stop $CONT_ID

This can be done in one command using:
sudo docker ps | awk '!/CONTAINER/ { system("sudo docker stop " $1 ) }'
This can also be done in one command:
::
sudo docker ps | awk '!/CONTAINER/&& !// { system("sudo docker stop " $1 ) }'

Unmount /nsm:
::
Expand Down

0 comments on commit cd40c1f

Please sign in to comment.