Reputation: 45
I have a python script that creates a map inside the docker container once the script has finished running:
/result
This is the map I want from the docker container.
How can I get the /result map from the docker container? The container seems to exist so fast after the script is done that I can't do a
docker cp
Right now I'm running my container with
docker run --rm imgTest --arg=hello --argTwo=world
but how can I get docker to copy over the /result directory to the host machine before it ends?
Upvotes: 0
Views: 332
Reputation: 192023
Mount the folder
docker run --rm -v /some/host/path:/result imgTest --arg=hello --argTwo=world
Upvotes: 1