Skip to content

Instantly share code, notes, and snippets.

View ngoclamtran's full-sized avatar
🎯
Focusing

Lam Tran ngoclamtran

🎯
Focusing
  • Trusting Social
  • Saigon, Vietnam
View GitHub Profile
@ngoclamtran
ngoclamtran / helpful-docker-commands.sh
Created August 18, 2019 06:56 — 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