-
Notifications
You must be signed in to change notification settings - Fork 39
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
Support different versions of Docker Engine with official Docker and Rancher setup scripts #12
Conversation
Hello, @marcusianlevine This looks like a great improvement over the current way that we handle the installation of Docker across the different distros. A couple of points that I find important (some you have already mentioned):
Thanks! |
Thanks for reviewing, I'll add optional checksum verification with appropriate warnings. Looks like Rancher's Also Rancher's scripts still reference the official Docker apt and yum repositories, so I don't think we need to be concerned about Rancher's scripts installing unofficial releases. Once I implement checksum I'll run some tests on the supported OS distros |
Added checksum support and condensed URLs to use Rancher's scripts by default. One could still use the official Docker setup script for latest release just by specifying the Just need to run those tests now |
Turns out that the official Docker 17.06.0-ce apt and yum distributions has a deprecation-related bug that is caused by an upstream error in docker-machine. Should be resolved in 17.06.1 or 17.12, but for now I just downgraded the default version to 17.03 and that seems to work on the 3 target OS distros in the Vagrantfile Zesty is giving me some trouble, looks like there isn't an official Docker apt repo for Zesty yet. I think that working around this issue as described here would require modifying the Rancher setup scripts though... Personally I'm using 1.12.6 and 17.03 with Rancher on Ubuntu Xenial, so the issues with 17.06 and Zesty don't effect my use case |
I agree that modifying the Rancher installation script is not a good idea so let's not do that. I just took this for a spin and everything seems to be working, with the exception of the Zesty part, which is a pity because it breaks backwards compatibility in the role BUT I am willing to push it forward in the hope that soon™ a fix will be introduced on either side of Docker, Rancher or any other divine entity that cares enough to fix it here. So, as a last step, could you please update the |
Sure, I just commented the zesty line out since it will (hopefully) be supported again "soon" 😝 |
LGTM |
The current release of the role uses apt and yum packages for installation, which tend to be several releases behind stable.
Docker provides a standard OS-agnostic setup script for the latest version of Docker at https//get.docker.com, which this PR implements fetching and running
To install a specific version of Docker, Rancher Labs provide a set of equivalent OS-agnostic setup scripts by version, which will be used if the new optional variable
docker_version
is provided to the role.Could add checksum verification if security is a concern