The following command, please add sudo
before docker
if it’s needed.
Remove all exited containers
docker rm $(docker ps -a -f status=exited -q)
Remove all dangling images
docker image rm -f $(docker images -f dangling=true -q)
Remove all exited containers, unused networks, dangling images, and dangling build cache
docker system prune
Check network status and details
docker network inspect NETWORK_NAME
Login and execute a command in a running Docker container
docker exec -it CONTAINER_NAME /bin/sh
搶先發佈留言