"Garbage at end of line" on Windows 10

Source: Internet
Author: User
Tags scp command

?

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.