docker-compose ps
docker-compose config --services
docker-compose up service
docker-compose down service
docker-compose up
docker-compose down
Starts a docker-compose service in the background so that the terminal is not blocked. This command can be used to start multiple services.
docker-compose up -d service1 service2 service3
docker-compose exec service bash
docker-compose run service command
For containers that have no startup command, this will open the terminal inside the container.
docker-compose run service
docker images
docker exec -it service /bin/bash
docker rmi $(docker images -a | grep "pattern" | awk '{print $3}')
docker ps -a
docker ps -aq
docker rm $(docker ps -aq)
docker ps -aq
docker rmi $(docker images -aq)
docker system prune