Skip to content

Instantly share code, notes, and snippets.

@vonhraban
Created June 23, 2019 14:55
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 vonhraban/51e07f0aa5402367afa81fb7ff920d2c to your computer and use it in GitHub Desktop.
Save vonhraban/51e07f0aa5402367afa81fb7ff920d2c to your computer and use it in GitHub Desktop.
if [[ $(docker ps -q) ]] ; then docker kill $(docker ps -q) ; else true ; fi && if [[ $(docker ps -aq) ]] ; then docker rm $(docker ps -aq) ; else true ; fi ; sudo service docker restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment