Docker command memorandum

Drop all the dockers that are currently running


docker ps -a | awk -F '  +' 'NR > 1 {print $7}' | xargs _docker_ rm -f

When you want to access mac localhost from inside the docker container


host.docker.interna

Test only specific methods


gradle test --tests "*HogeTest.testNewInstance" -i

Test only specific classes


gradle test --tests "*HogeTest" -i

Erase containers at once


docker container list -qf name=zubatoku.*_<name> | xargs docker container rm -f

If you want to keep the things related to the currently running container


docker system prune -af --volumes

Erase all containers


docker rm -f $(docker ps -aq)

Erase all container images


docker rmi -f $(docker images -q)

Erase all docker volume


docker volume rm -f $(docker volume ls -q)

Recommended Posts

Memorandum docker command
Docker command memorandum
Docker command
Docker memorandum
Docker memorandum
Technical memorandum (Docker)
Docker command list
Docker command memo
docker basic command
Docker command summary
[Docker] Command summary
[Docker] Command list
Docker Machine (personal memorandum)
Docker Machine command memo
docker error delete command
docker command personal summary
Docker command cheat sheet
Docker network (personal memorandum)
memorandum
memorandum
Docker Compact Manual (1: Basic / Basic Command)
docker
docker memo
Easy installation of Docker with snap (1 command)
kubernetes + docker
spring × docker
Grant docker command execution permission to ec2-user
Launch docker container on EC2 (personal memorandum)
Java memorandum
Docker basics
Error memorandum
Jaba Jaba Memorandum
Docker installation
JavaFx memorandum
JAVA memorandum
JUnit memorandum
Try to use docker command without sudo.
Gradle Memorandum
Understand Docker
thymeleaf memorandum
Command docker-compose
Building a CICD pipeline using Docker (personal memorandum)
Environment construction command memo with Docker on AWS
[Laravel] Command memorandum until the start of the project
Data management using volume in Docker (personal memorandum)
Command to stop or delete all Docker resources