Created
January 28, 2020 06:02
-
-
Save jamesmoriarty/98d7fe6fa3803fab16281e3c7f9a8275 to your computer and use it in GitHub Desktop.
Docker Image Copy Files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ./docker-copy a25dae391089 /bin/prometheus ./ | |
id=$(docker create $1) | |
docker cp $id:$2 $3 | |
docker rm -v $id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment