docker-osx-dev
docker-osx-dev copied to clipboard
Rsync install only works for boot2docker image
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).
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
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.