Browse Source

delete all dangling images

master
markuman 4 years ago
parent
commit
7a3bf83c46
  1. 2
      til.md

2
til.md

@ -66,6 +66,8 @@ Delete all containers
* `docker rm $(docker ps -a -q)`
Delete all images
* `docker rmi $(docker images -q)`
Delete all dangling images
* `docker rmi $(docker images -f dangling=true -q)`
Create docker network
* `docker network create mynet`
run two docker `img` container with different names `foo` and `bar` and the can reach each other with domain name `foo` and `bar`

Loading…
Cancel
Save