0

I want to upload a .txt file to a container so later I can copy that file to paste it in a different container but I am new using docker and the manual is too complicated to understand. Can someone help me? I am using a windows 10 computer.

Thanks! Sarah

2 Answers2

0

you can do it using

docker cp

see the doc

https://docs.docker.com/engine/reference/commandline/cp/

you can also use netcat, see for example

https://github.com/chilcano/docker-netcat

if your container uses a volume, this is another way to do

https://docs.docker.com/engine/tutorials/dockervolumes/

user2915097
  • 30,758
  • 6
  • 57
  • 59
0

you need keep the docker running. then in a different terminal use docker cp command to copy the files/folders.

Zhu Xiaohu
  • 589
  • 6
  • 8