Created
June 5, 2020 04:37
-
-
Save joelnitta/29649d4463e77798381f47e29d54748c to your computer and use it in GitHub Desktop.
Stop a docker daemon using a stored PID
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# Kill the job using the saved ID | |
kill -9 `cat dockerd.pid` | |
rm dockerd.pid | |
rm dockerd.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment