** Description changed:

+ [Impact]
+ 
+  * This bug breaks lxc engine support of docker.
+ 
+  * There is an upstreamed fix issued to manage newer version of LXC,
+ which enable lxc.autodev by default.
+ 
+  * patch is lxc.autodev-support.patch that is a cherry-pick of
+ 
https://github.com/docker/docker/commit/6089e679a2fb2494fd3e599a9eab9327e6a509fc
+ 
+ [Test Case]
+ 
+  * To reproduce the bug:
+ 
+   on a fresh vivid server:
+     sudo apt-get install -y lxc docker.io
+   edit /dev/default/docker:
+     DOCKER_OPTS="-e lxc"
+   
+   restart docker-daemon service:
+     sudo service docker start (see bug: LP: #1459916)
+ 
+   ensure docker is running with the correct options:
+     root     20458     1  0 07:48 ?        00:00:19 /usr/bin/docker -d -H 
fd:// -e lxc
+ 
+   pull a docker image (amd64):
+     docker pull ubuntu:latest
+  after download is successfull:
+  it will fail to start like reported:
+   ubuntu@vd2:~$ sudo docker run -it ubuntu:latest /bin/bash
+   Unable to find image 'ubuntu:latest' locally
+   Pulling repository ubuntu
+   6d4946999d4f: Download complete 
+   428b411c28f0: Download complete 
+   435050075b3f: Download complete 
+   9fd3c8c9af32: Download complete 
+   Status: Image is up to date for ubuntu:latest
+   lxc-start: lxc_start.c: main: 344 The container failed to start.
+   lxc-start: lxc_start.c: main: 346 To get more details, run the container in 
foreground mode.
+   lxc-start: lxc_start.c: main: 348 Additional information can be obtained by 
setting the --logfile and --logpriority options.
+   FATA[0015] Error response from daemon: Cannot start container 
5b7ee6181a49a1fa5c6ac47eab666ea05611f6f7f8b3610bfacb9a150c966501: Container is 
not running 
+ 
+ (   for bandwidth consideration, you might want to save the downloaded image 
for other testing, 
+     sudo docker images
+     sudo docker save -o ubuntu_latest.tar ubuntu:latest
+     bzip2 ubuntu_latest.tar, 
+ 
+     to reload it on an other sytem:
+     sudo docker load -i  ubuntu_latest.tar.bz2
+     sudo run -it ubuntu:latest /bin/bash
+ )
+ 
+ With fix:
+ Now, restart a fresh vivid server, 
+   install the new proposed package
+   sudo apt-get install -y lxc
+   sudo service docker stop
+   edit /etc/default/docker (DOCKER_OPTS="-e lxc")
+   sudo service docker start
+   sudo docker run -it ubuntu:latest /bin/bash
+     Unable to find image 'ubuntu:latest' locally
+     latest: Pulling from ubuntu
+     428b411c28f0: Already exists 
+     435050075b3f: Already exists 
+     9fd3c8c9af32: Already exists 
+     6d4946999d4f: Already exists 
+     Digest: 
sha256:45e42b43f2ff4850dcf52960ee89c21cda79ec657302d36faaaa07d880215dd9
+     Status: Image is up to date for ubuntu:latest
+     root@e433f427c0f2:/# lsb_release -c
+     Codename: trusty
+     root@e433f427c0f2:/# exit
+ 
+ 
+ 
+ [Original Description]
+ 
  Start docker daemon with "-e lxc" option.
  
  pulll & run ubuntu image.
  
  Expect to get a bash prompt, instead I get:
  
  $ docker run -ti ubuntu bash
  lxc-start: conf.c: mount_entry: 1711 No such file or directory - failed to 
mount '/dev/pts/5' on '/usr/lib/x86_64-linux-gnu/lxc//dev/console'
  lxc-start: conf.c: lxc_setup: 3831 failed to setup the mount entries for 
'9b33b115f6ba2f4882f79745f1c8397b4f57ef3547fea30cfb01b3d03acd2f6c'
  lxc-start: start.c: do_start: 699 failed to setup the container
  lxc-start: sync.c: __sync_wait: 51 invalid sequence number 1. expected 2
  lxc-start: start.c: __lxc_start: 1164 failed to spawn 
'9b33b115f6ba2f4882f79745f1c8397b4f57ef3547fea30cfb01b3d03acd2f6c'
  lxc-start: lxc_start.c: main: 344 The container failed to start.
  lxc-start: lxc_start.c: main: 348 Additional information can be obtained by 
setting the --logfile and --logpriority options.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1466550

Title:
  docker lxc driver fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1466550/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to