2

Is it possible to add files from local file system to a running docker container? Or I need to stop the container and add the files using cp command and run the container again?

Mufeed
  • 3,018
  • 4
  • 20
  • 29

1 Answers1

1

Try docker cp.

To put files on a container:

docker cp file.pdf container:/file.pdf

To get files from a docker container:

docker cp container:/file.pdf file.pdf
Alfonso Tienda
  • 3,442
  • 1
  • 19
  • 34