Useful docker commands for everyday use!

Below is a collection of useful docker commands that I use often

Run a docker compose, remember cd to the directory containing the compose file before running

docker-compose up

Run and rebuild docker compose

docker-compose up --build

List runing container

docker ps

List all container

docker ps -a

Remove image

docker rmi [image-id]

Stop container

docker stop [container-id]