New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker exec -i
as a transport for rsync -e
#13660
Comments
|
@peter-leonov How is it going? I can solve the problem with |
I am still experiencing problems with this in Docker 1.9.1. My environment is very simple, just two hosts running Docker Engine on the same network. They're both CentOS 7, identical patch levels, same image on both hosts. Not using Compose, Swarm, Network or anything else, just manually-managed containers. Both hosts use the same internal CA to listen on TLS. Docker Engine and rsync are installed inside the image, as is the CA cert, so the docker CLI works fine from inside the container. From server A, I start bash in container A and try to use rsync to copy files from container B on server B. For a very small amount of data, I see this:
Works fine. Total file size is about 2.5 KB. But when I try to transfer more, it breaks every time:
I've repeated this test many times, it never works. The total amount of data I would like to transfer is about 125 GB, but it always stops after a few tens of KB. |
Have you tried using the |
Yes! |
Confirmed! Excellent! Thank you! |
Why docker exec can't work with blocking IO? Should this be a Docker-specific problem? Is there anyway to fix that in Docker instead of fixing a client option? |
It's not |
If it's not |
|
Thanks for your explanation. I think I will use Update: fix typoe. |
The benefit of |
Description of problem:
Trying to use docker CLI as an
ssh
replacement forrsync
; and something goes wrong with a low level error not related torsync
neitherdocker exec
but a tunnel between them (looks like so).docker version
:docker info
:uname -a
:Host:
Docker VM:
Environment details (AWS, VirtualBox, physical, etc.):
The docker machine is an up to date boot2docker image run in VirtualBox.
How reproducible:
Try to run
rsync -e 'docker exec -i' /
Steps to Reproduce:
Actual Results:
and an empty local
./bin
directory.Expected Results:
No error messages :) and a recursive copy of the
test1
container/bin
directory.Additional info:
Note that time="2015-06-02T14:01:34+03:00" level=fatal msg="write /dev/stdout: resource temporarily unavailable" error. And for really small directory (for ex. an empty `/home/) rsync will do well but it hangs at the end (maybe related to #13052).
Container
rsync --version
CLI
rsync --version
:The text was updated successfully, but these errors were encountered: