Open darendarrow opened 6 years ago
This is a good idea but have to keep in mind supported docker versions that works with both Rancher and Kubernetes versions included.
Since it appears that Rancher keeps a modified version of the get script for each supported version, the wrapper should select the version based on the OS version or other selector and not depend on just the 17.0.3.sh version.
The options are in the Install scripts column on https://rancher.com/docs/rancher/v1.6/en/hosts/#supported-docker-version but they're named in a way that would usable programmatically.
I should note that the docs we're referencing is for Rancher v1.6. For version 2, the supported Docker versions are much simpler. For RHEL and Debian-based anything 17.03.2 or better is supported. https://rancher.com/docs/rancher/v2.x/en/installation/requirements/
it would be convenient if this where fixed. It kinda sucks having to go into the rancher instance and manually run the script's commands to get it working
I've noticed when deploying on Triton to an Ubuntu 17.10 20180222 image the script to install Docker fails. From what I see the script to install Docker uses apt.dockerproject.org; however, that has not been updated in some time.
The current version is
18.06.0~ce~3-0~ubuntu
. The script should be modified to pull from download.docker.com, as this one from Docker does (but edited to use the stable branch), to build the repo file. That will ensure longterm compatibility and latest Docker versions.Example install with modified script to install stable branch.
curl https://us-east.manta.joyent.com/daren.darrow@joyent.com/public/get-docker.sh | sudo bash