?
Error when you run Docker-machine SCP myvm1 docker-compose.yml myvm1:~ on Windows 10:
"Garbage in end of line <user name" in the second half >\.docker\machine\machines\myvm1\id_rsa "
?
"Workaround"
This is a bug in Boot2docker, the post is here:
https://github.com/laravel/homestead/issues/656
This is caused because hyperv defaults to placing the VM's file under the C:\users\<user name>\.docker\machine\machines\myvm1\, if there is a space in the middle of the user name, It will cause the above error.
Boot2docker said that the later version will be repaired.
The immediate solution is to configure the Hyperv to place the VM's files in a directory without spaces, by setting a system-level environment variable machine_storage_path, such as C:\docker, and then using Docker-machine Create re-creates the VM, the VM's file is placed in the new directory, and the SCP command succeeds.
"Garbage at end of line" on Windows 10