Skip to content

Instantly share code, notes, and snippets.

@joelnitta
Created June 5, 2020 04:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joelnitta/29649d4463e77798381f47e29d54748c to your computer and use it in GitHub Desktop.
Save joelnitta/29649d4463e77798381f47e29d54748c to your computer and use it in GitHub Desktop.
Stop a docker daemon using a stored PID
#!/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