I started to use Docker Machine and I just saw there's a scp command. Like the documentation said:
$ docker-machine ssh dev 'echo A file created remotely! >foo.txt'
$ docker-machine scp dev:/home/docker/foo.txt .
I did the same by creating a file and then:
docker-machine scp default:/home/docker/test.txt .
But I keep facing a status 1.
If I did the reverse, and upload a file to the container, I'm facing lost connection with a status 1. The command:
docker-machine scp mongo.tar default:mongo.tar
Please assume I'm not an expert with ssh and scp stuff.
if you are running docker-machine from Docker Toolbox on Windows, there is an auto mounted volume where you can access to you host filesystem. By default, the mount point into the VM is /c/Users/ .
This call worked for me:
scp xxx [email protected]:~
The default password is tcuser
; alternatively you could use the mount point noted in the answer above.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With