Skip to content

Instantly share code, notes, and snippets.

@waleedsamy
Last active December 27, 2015 13:37
Show Gist options
  • Select an option

  • Save waleedsamy/5223dc2e0abea7cc5bac to your computer and use it in GitHub Desktop.

Select an option

Save waleedsamy/5223dc2e0abea7cc5bac to your computer and use it in GitHub Desktop.
stop and remove docker container
#
### cnt=$(docker ps -a | awk 'NR>1 {print $1}') && docker stop $cnt && docker rm $cnt
### docker stop $cnt && docker rm $cnt
#
docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment