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