Skip to content

Instantly share code, notes, and snippets.

@TheMoroccan09
Created November 28, 2017 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save TheMoroccan09/60bde731493f7c178efc4d07d3b6cced to your computer and use it in GitHub Desktop.
Save TheMoroccan09/60bde731493f7c178efc4d07d3b6cced to your computer and use it in GitHub Desktop.
#!bin/bash
DOCKER_PIDS=$(docker ps -a -q)
if [ -n "$DOCKER_PIDS" ]; then
docker stop $DOCKER_PIDS && docker rm $DOCKER_PIDS
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment