Docker Cheatsheet

@Shoaib

1/2. Docker-compose

destroys conatiner once it's use has finished up

docker-compose run --rm composer install 

Delete everything, including images, volumes and orphan containers

docker-compose down -v --rmi all --remove-orphans

To follow the docker compose logs

docker-compose logs <container-name> -f