docker-osx-dev icon indicating copy to clipboard operation
docker-osx-dev copied to clipboard

Rsync install only works for boot2docker image

Open labianchin opened this issue 10 years ago • 2 comments

install_rsync_on_docker_host is using tce-load which is only available on Tiny Core Linux distribution, which boot2docker is based at. When using a docker-machine with a non boot2docker image, e.g. Ubuntu or CentOS on EC2 driver, rsync will not be installed. Currently, in this case, the user need to manually installs rsync (via docker-machine ssh and apt-get, yum, etc).

Ideally install_rsync_on_docker_host should work when using other linux distributions (and package manager).

labianchin avatar Aug 15 '15 21:08 labianchin

I wonder if there is some simple script we could write to detect the OS or package manager and handle the common cases? Rough pseudo code:

if os == ubuntu
  apt-get rsync
else if os == fedora
  yum install rsync
... etc

brikis98 avatar Aug 15 '15 23:08 brikis98

And, if it turns out to be a linux flavor we don't recognize, output a warning to the user that they need to install rsync themselves.

brikis98 avatar Aug 15 '15 23:08 brikis98