docker tricks


Author: yifei / Created: July 15, 2017, 5:04 a.m. / Modified: July 15, 2017, 3:37 p.m. / Edit

remove all stopped container

docker rm `docker ps -aq`

remove all untagged images

docker rmi `docker images | grep "^<none>" | awk '{print $3}'`

enter a runnign container

docker exec -it CONTAINER_NAME bash

评论区