加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

使用Docker Provider的Vagrant因ssh上的rsync而失败

发布时间:2020-12-16 03:38:58 所属栏目:安全 来源:网络整理
导读:我有问题用Docker运行Vagrant.问题是共享文件夹的rsync. WDFM32388067A:vagranttest d022051$vagrant upBringing machine 'default' up with 'docker' provider...== default: Docker host is required. One will be created if necessary... default: Vagra

我有问题用Docker运行Vagrant.问题是共享文件夹的rsync.

WDFM32388067A:vagranttest d022051$vagrant up
Bringing machine 'default' up with 'docker' provider...
==> default: Docker host is required. One will be created if necessary...
    default: Vagrant will now create or start a local VM to act as the Docker
    default: host. You'll see the output of the `vagrant up` for this VM below.
    default:  
    default: Importing base box 'hashicorp/boot2docker'...
    default: Matching MAC address for NAT networking...
    default: Checking if box 'hashicorp/boot2docker' is up to date...
    default: Setting the name of the VM: docker-host_default_1438155600426_39792
    default: Clearing any previously set network interfaces...
    default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Forwarding ports...
    default: 2375 => 2375 (adapter 1)
    default: 22 => 2222 (adapter 1)
    default: Running 'pre-boot' VM customizations...
    default: Booting VM...
    default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: docker
    default: SSH auth method: password
    default: Warning: Connection timeout. Retrying...
    default: Machine booted and ready!
==> default: Syncing folders to the host VM...
    default: Installing rsync to the VM...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

rsync --help

Stdout from the command:



Stderr from the command:

sh: rsync: not found

    default: The previous process exited with exit code 1.
    default: The previous process exited with exit code 1.

从错误消息中不清楚ssh或rsync是否是问题.也许是因为ssh超时了.我尝试了所有可能的ssh选项,但没有做任何事情.例如,我设置了config.ssh.private_key_path,但错误消息仍然完全相同.有没有人有类似的问题?

最佳答案
我还遇到了hashicorp / boot2docker.移动到mitchell / boot2docker也没有帮助,但我发现了

https://vagrantcloud.com/dduportal/boxes/boot2docker

运作良好(并且是最新的).

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读