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
  • 6,415
  • 13
  • 69
  • 135

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
  • 41,816
  • 6
  • 58
  • 77