On 16.04, neither lxc nor lxd containers with 14.04 run docker

Bug #1574944 reported by Marcos Diez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Docker.io
New
Undecided
Unassigned
lxd (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

On a Ubuntu 16.04 server amd64 host, docker does not work inside of a (lxc or lxd) Ubuntu 14.04 guest.

I tested on both a clean Ubuntu 16.04 install and also one that was upgraded from Ubuntu 15.10.

My definition of work is having the expected result when running

---------------------------
   sudo docker run hello-world
---------------------------

If the guest containers is also Ubuntu 16.04, it works out of the box.

The images were made either using

lxc-create -t download -n test01 -- -d ubuntu -r trusty -a amd64

or on lxd following the syntax from https://www.stgraber.org/2016/03/11/lxd-2-0-introduction-to-lxd-112/

Just for further reference, If the host is 15.10, one can have docker inside of LXC containers if one does the following:

a) on the host:
   add this to /etc/lxc/default.conf

lxc.aa_profile = unconfined
lxc.cgroup.devices.allow = a
lxc.cap.drop =

   sudo mv /usr/share/lxc/config/common.conf.d/00-lxcfs.conf /usr/share/lxc/config/common.conf.d/00-lxcfs.conf.disabled
   iptables -L # really. this loads modules that the docker install needs to be happy
   ip6tables -L # really. this loads modules that the docker install needs to be happy

create the guest with something like

lxc-create -t download -n test01 -- -d ubuntu -r trusty -a amd64

b) on the guest

   sudo apt-get install curl apparmor cgroup-lite

   curl -fsSL https://get.docker.com/ | sudo sh # the docker from apt-get install docker.io does not work,

   sudo docker run hello-world

I personally consider this bug very important because 15.10 will be unsupported in July, so not upgrading will become an insecure choice to make.

If there is any way I can help you, please let me know.

Thanks

Marcos

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: lxd 2.0.0-0ubuntu4
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
Date: Tue Apr 26 00:37:03 2016
InstallationDate: Installed on 2016-02-18 (67 days ago)
InstallationMedia: Ubuntu-Server 15.10 "Wily Werewolf" - Release amd64 (20151021)
SourcePackage: lxd
UpgradeStatus: Upgraded to xenial on 2016-04-21 (4 days ago)

Revision history for this message
Marcos Diez (bugshideout) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1574944] [NEW] On 16.04, neither lxc nor lxd containers with 14.04 run docker

This is not a lxd bug. You need the docker source as is packaged in
16.04. To run that in a 14.04 container, you might be able to build
the 16.04 package in a ppa for 14.04, but I've not tried it. Marking
this as affecting docker.io

 status invalid
 affects docker.io

Changed in lxd (Ubuntu):
status: New → Invalid
Revision history for this message
Marcos Diez (bugshideout) wrote :

Thanks!

Since somehow this bug is not showing up on the docker.io team, I opened it again.

the link is here for future reference
https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1575169

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.