Browse Source

add til docker cp

master
Markus Bergholz 3 years ago
parent
commit
a4f369fe0e
  1. 6
      til.md

6
til.md

@ -97,11 +97,15 @@ 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`
* `docker run --name bar --net mynet img`
copy files from an image to `/tmp/some.file`
docker cp $(docker create my/image:latest):/etc/some.file /tmp/some.file
## git
Set git to use the credential memory cache

Loading…
Cancel
Save