docker-machine scp: illegal option -- 3错误

问题

在阿里云使用docker-machine scp进行复制的时候报这个错误:

scp: illegal option -- 3
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2
exit status 1

解决

在参数上加-d。具体为什么没看出来,因为我在mac上是可以不加的

  docker-machine scp -d   manager1:/root/docker .

参数解释Options:

–recursive, -r Copy files recursively (required to copy directories)递归创建,传目录的时候加上
–delta, -d Reduce amount of data sent over network by sending only the differences (uses rsync)只传输不同的部分
–quiet, -q Disables the progress meter as well as warning and diagnostic messages from ssh

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值