1

I have a docker image which has all the required files when I say docker run I would like for it to copy the contents of a folder in docker image to a host directory. After which the docker is not needed and stops

1

1 Answer 1

1

Mount the host directory to a volume with the run command (-v option). In the image copy the files to this volume.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.