Docker
15. September 2021 / Stephan Post
Access logfiles
docker-compose logs -f cae-preview
Stop all
This command should stop and remove all running containers and volumes that are associated with the project defined by the compose files.
docker-compose down -v
List all
This command lists all running containers and their mapped ports.
docker ps --format "table \t" -a
To list the services that will be started execute the following command:
docker-compose config --services
Start all
docker-compose up -d --build
The flag --build forces docker-compose to build the images, which are not included into the Maven build and which are only required in the development setup, such as mysql, mongodb, overview, traefik and the commerce proxies.
Health check
docker ps
Remove Images
remove by Pattern
docker images -a | grep "pattern" | awk '{print $3}' | xargs docker rmi
docker images -a | grep "<none>" | awk '{print $3}' | xargs docker rmi
docker rmi IMAGE
DRAFT