docker-compose up -d --remove-orphans
docker-compose down --remove-orphans
docker exec -it <PS NAme> -- sh
docker build . --tag wp-lamp
docker build . --tag wp-serbisyo
docker run -p 9080:80 -d --rm --name wp-serbisyo wp-serbisyo
docker exec -it wp-serbisyo /bin/bash
Basics
list all running and stopped containers
docker ps -aq
Stop all running containers
docker stop $(docker ps -q)
Delete all stopped containers. Note: you cannot delete running containers
docker rm $(docker ps -aq)
Delete all images
docker rmi $(docker images -q) -f