-
Notifications
You must be signed in to change notification settings - Fork 51
ciao-launcher: Fix docker dependency in ubuntu #509
Conversation
Fixes issue #508 |
1 similar comment
I'm a bit confused by all this. I thought we were supposed to be pulling docker from apt.dockerproject.org so we get the latest version. If we were to do this, the name of the docker package should be docker-engine and not docker-io. There seems to be some code in osprepare for handling external repos but it seems incomplete and unused. @tpepper any idea what the status/plan here is? If we merge this patch now we'd get docker 1.10.3 on Ubuntu 16.04 and earlier versions on older version of Ubuntu. I don't think this is what we want. |
Yes osprepare does need polished to add ability to install non-distro shipped bits, such as docker. |
Despite #509 (comment) I do think the patch here is correct. Osprepare is limited in its ability and needs to do: if /usr/bin/docker is not present or not at version high enough, then if docker.io in Ubuntu official repo is high enough version then install it, else install docker-engine from apt.dockerproject.org. |
Maybe we should remove docker entirely from the ubuntu install deps for the time being. I seem to remember that we needed a version > 1.10.3. Perhaps @mcastelino could confirm. If this is the case, we could end up having to manually uninstall the docker installed by osprepare before we install the latest version by hand. |
@markdryan We need docker version 1.10.3 because prior builds have a bug in the network plugin framework. So the ciao docker network plugin will not work with prior releases. |
Re: #509 (comment) I think it will be a recurring issue and on each distro. osprepare needs its minversion check added and for docker needs to know how to satisfy a minversion from apt.dockerproject.org if it's not satisfiable from the distro itself. |
(which is also to say: osprepare does not function correctly/completely today...I'm working on patches) |
docker.io in Ubuntu is Version: 1.11.2-0ubuntu5~16.04 So I think we can merge this patch until we get the extra code to setup the proper repository and get the proper docker-engine working. It is better to have docker.io than a KDE applet |
@albertomurillo Ubuntu 16.04 has docker 1.10.3. @mcastelino has confirmed that this is good enough to run ciao. The problem is though, what happens if we merge this patch and then we run launcher on a machine that already has docker 1.12 installed from the docker repos. Will we end up with two versions of docker? Will they interfere with each other? Also, installing docker-io isn't much help for those on an earlier version of Ubuntu. I think @tpepper had a suggestion in the bug to change the package name to docker-engine. This will require the user to manually add the docker repos to the sources.list but from then on launcher and osprepre will do the right thing. I vote we do this. |
It doesn't make too much sense to make osprepare install docker-engine while asking The idea of osprepare is that it will install the required pacakges automatically. If you put as a requirement that the repository has to be manually installed and in other Currently, there is a clearlinux.docker role that installs docker repository and docker-engine I see two options from here:
I'm fine with either |
Yes, actually, I was suggesting 2 above. The requirement on users to manually add the docker sources would only be temporary. The plan has always been for osprepare to install things from the docker repos directly. The code's just not ready yet. |
The 'docker' package is being installed as a dependency to get docker insalled in Ubuntu, however, the package needed is 'docker-engine' From apt-cache search docker docker - System tray for KDE3/GNOME2 docklet applications docker-engine - Docker: the open-source application container engine Fixes #508 Signed-off-by: Alberto Murillo <[email protected]>
The 'docker' package is being installed as a dependency to
get docker insalled in Ubuntu, however, the package needed
is 'docker-engine'
From apt-cache search docker
Fixes #508
Signed-off-by: Alberto Murillo [email protected]