Skip to content

Instantly share code, notes, and snippets.

View chen2aaron's full-sized avatar
👨‍💻
Focusing

xixijun chen2aaron

👨‍💻
Focusing
View GitHub Profile
@chen2aaron
chen2aaron / helpful-docker-commands.sh
Created May 8, 2020 09:54 — forked from garystafford/helpful-docker-commands.sh
My list of helpful docker commands
###############################################################################
# Helpful Docker commands and code snippets
###############################################################################
### CONTAINERS ###
docker stop $(docker ps -a -q) #stop ALL containers
docker rm -f $(docker ps -a -q) # remove ALL containers
docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter
# exec into container