1

I am trying to copy a .txt file from my computer into a docker container using the command below which I run in powershell:

docker cp SelectedWords.txt  27eab29f7d03:/selectwords/ 

The command is run, but when I check docker, the file does not appear.

Any suggestions please?

THess
  • 1,003
  • 1
  • 13
  • 21
  • `docker cp SelectedWords.txt 27eab29f7d03:/selectwords/SelectedWords.txt` make sure that you have the folder `selectwords` first – LinPy Oct 21 '19 at 13:25

1 Answers1

2

Remove the trailing slash

docker cp SelectedWords.txt 27eab29f7d03:/selectwords

Your file should be at /selectwords/SelectedWords.txt

Arik
  • 5,266
  • 1
  • 27
  • 26