Rsync error "resolved" using docker firewall in Windows

Just installed vagrant 1.7.4 from the official site, in addition to other software: Virtual Box, cygwin (rsync and openssh). Other mailboxes like ubuntu / trusty or centos / 7 seem to work. An error occurred while trying to use docker as a provider. Here is my stray file

Vagrant.configure(2) do |config| config.vm.network "public_network", ip: "192.168.1.103" config.ssh.insert_key=true config.vm.provider "docker" do |d| #d.vagrant_vagrantfile = "vagrantfile-boot2docker" d.build_dir = "." end ENV["VAGRANT_DETECTED_OS"] = ENV["VAGRANT_DETECTED_OS"].to_s + " cygwin" end 

This is what happens in the console.

 $ vagrant up Bringing machine 'default' up with 'docker' provider... ==> default: Docker host is required. One will be created if necessary... default: Docker host VM is already ready. ==> default: Syncing folders to the host VM... default: The machine you're rsyncing folders to is configured to use default: password-based authentication. Vagrant can't script rsync to automatically default: enter this password, so you'll likely be prompted for a password default: shortly. default: default: If you don't want to have to do this, please enable automatic default: key insertion using `config.ssh.insert_key`. default: Rsyncing folder: /cygdrive/f/st***/Pre*****/ => /var/lib/docker/docker_1447743654_45276 There was an error when attempting to rsync a synced folder. Please inspect the error message below for more info. Host path: /cygdrive/f/st***/Pre*****/ Guest path: /var/lib/docker/docker_1447743654_45276 Command: rsync --verbose --archive --delete -z --copy-links --chmod=ugo=rwX --no-perms --no-owner --no-group --rsync-path sudo rsync -e ssh -p 2201 -o StrictHostKeyChecking=no -o IdentitiesOnly=true -o UserKnownHostsFile=/dev/null --exclude .vagrant/ /cygdrive/f/st***/Pre*****/ docker@127.0.0.1 :/var/lib/docker/docker_1447743654_45276 Error: Warning: Permanently added '[127.0.0.1]:2201' (ECDSA) to the list of known hosts. Permission denied, please try again. Permission denied, please try again. Permission denied (publickey,password,keyboard-interactive). rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.1] 

As I understand the permissions issue, but I'm not sure which permissions are boot2docker or host. I also tried without config.ssh.insert_key = true - the same result.

Update:
Tried to execute a large rsync command from a log manually. An error has been shown

connect to host 127.0.0.1 port 22: connection rejected

but a direct connection using ssh docker@127.0.0.1 -p 2201 was successful.

So maybe the problem in the rsync command is using the wrong port.

Update2
Finally, rsync -e 'ssh -p 2201' --rsync-path='sudo rsync' -avz /cygdrive/f/st***/Pre****/ docker@127.0.0.1 :/var/lib/docker/docker_1447763422_11407 synchronized everything, as it should be without problems. But the question is open why the tramp does not do it properly.

+5
source share

Source: https://habr.com/ru/post/1236117/


All Articles