"garbage at end of line" on Windows 10

?

在windows 10上运行docker-machine scp myvm1 docker-compose.yml myvm1:~的时候报错:

"garbage at end of line <user name的后半部分>\.docker\machine\machines\myvm1\id_rsa"

?

【解决方法】

这是boot2docker的一个bug, 帖子在这里:

https://github.com/laravel/homestead/issues/656

引起的原因是因为HyperV默认把VM的文件放在了c:\users\<user name>\.docker\machine\machines\myvm1\的下面,如果user name中间有空格,就会引起上面的错误。

Boot2docker说是后面版本会修复。

当下的解决方案是配置一下,让HyperV将VM的文件放在不带空格的目录下, 具体方法是设置一个系统级别的环境变量MACHINE_STORAGE_PATH, 比如可以设置成c:\docker, 然后用docker-machine create重新创建vm, VM的文件就会放在新的目录下, 再运行scp命令就会成功了。

时间: 2024-11-09 03:24:50

"garbage at end of line" on Windows 10的相关文章

修改Fedora 25与Windows 10的默认启动顺序

首先贴出Fedora25下/boot/grub2/grub.cfg的内容: 1 # 2 # DO NOT EDIT THIS FILE 3 # 4 # It is automatically generated by grub2-mkconfig using templates 5 # from /etc/grub.d and settings from /etc/default/grub 6 # 7 8 ### BEGIN /etc/grub.d/00_header ### 9 set pag

hdu5802 Windows 10 贪心

Windows 10 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2096    Accepted Submission(s): 630 Problem Description Long long ago, there was an old monk living on the top of a mountain. Recently,

hdu 5802 Windows 10(2016 Multi-University Training Contest 6——贪心+dfs)

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5802 Windows 10 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1005    Accepted Submission(s): 333 Problem Description Long long ago, there was a

背水一战 Windows 10 (27) - 控件(文本类): TextBlock

原文:背水一战 Windows 10 (27) - 控件(文本类): TextBlock [源码下载] 作者:webabcd 介绍背水一战 Windows 10 之 控件(文本类) TextBlock 示例1.TextBlock 的示例 1Controls/TextControl/TextBlockDemo1.xaml <Page x:Class="Windows10.Controls.TextControl.TextBlockDemo1" xmlns="http://

背水一战 Windows 10 (60) - 控件(媒体类): Pointer 涂鸦板, InkCanvas 涂鸦板

[源码下载] 作者:webabcd 介绍背水一战 Windows 10 之 控件(媒体类) 通过处理 Pointer 相关事件实现一个简单的涂鸦板 InkCanvas 基础知识 示例1.演示如何通过 Pointer 相关事件的处理,来实现一个简单的涂鸦板Controls/MediaControl/InkSimple.xaml <Page x:Class="Windows10.Controls.MediaControl.InkSimple" xmlns="http://s

背水一战 Windows 10 (13) - 绘图: Stroke, Brush

[源码下载] 作者:webabcd 介绍背水一战 Windows 10 之 绘图 Stroke - 笔划 Brush - 画笔 示例1.演示“Stroke”相关知识点Drawing/Stroke.xaml <Page x:Class="Windows10.Drawing.Stroke" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://s

2016暑假多校联合---Windows 10

2016暑假多校联合---Windows 10(HDU:5802) Problem Description Long long ago, there was an old monk living on the top of a mountain. Recently, our old monk found the operating system of his computer was updating to windows 10 automatically and he even can't j

背水一战 Windows 10 (12) - 绘图: Shape, Path

[源码下载] 作者:webabcd 介绍背水一战 Windows 10 之 绘图 Shape - 图形 Path - 路径 示例1.演示“Shape”相关知识点Drawing/Shape.xaml <Page x:Class="Windows10.Drawing.Shape" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schema

hdu-5802 Windows 10(贪心)

题目链接: Windows 10 Time Limit: 2000/1000 MS (Java/Others)     Memory Limit: 65536/65536 K (Java/Others) Problem Description Long long ago, there was an old monk living on the top of a mountain. Recently, our old monk found the operating system of his c