Browse Source

cleanup docker cmds

master
markuman 4 years ago
parent
commit
3a718d0020
  1. 5
      til.md

5
til.md

@ -77,6 +77,11 @@ Delete all dangling images
Create docker network
* `docker network create mynet`
clean up
* `docker system prune`
* `docker volume rm $(docker volume ls -q --filter dangling=true)`
run two docker `img` container with different names `foo` and `bar` and the can reach each other with domain name `foo` and `bar`
* `docker run --name foo --net mynet img`

Loading…
Cancel
Save