# Handy Docker Commands! - `docker ps -a` # shows all containers and their statuses, stopped, up for x hours, etc! - `docker stop $(docker ps -a -q)` # Stops all running containers. - `docker build .` # Builds current dockerfile in directory into a docker image - `docker-compose up -d --build` # builds from docker-compose.yml, and runs as daemon. ### Tagging docker images & pushing - `docker images` - `docker tag <imageid> bchewy/repo_name:tagname` - `docker push bchewy/repo_name` ### Removing all containers & images if you need to: `docker system prune -a` Reference: https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes#removing-docker-images https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes#:~:text=Remove%20all%20images,docker%20images%20%2Da