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

kumar
  • 8,207
  • 20
  • 85
  • 176

1 Answers1

1

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

Henry
  • 42,982
  • 7
  • 68
  • 84