Closed gmacario closed 10 years ago
By inspecting the container logs it looks like the container does not start because it fails to mount the current directory under /vagrant
gmacario@mv-linux-powerhorse:~/tmp2/try-ubuntu1404-docker⟫ docker logs 8cc12a4ba727f7ac
lxc-start: No such file or directory - failed to mount '/opt/projects/gmacario/tmp/try-ubuntu1404-docker' on '/usr/lib/x86_64-linux-gnu/lxc///vagrant'
lxc-start: failed to setup the mount entries for '8cc12a4ba727f7ac93dbb83cee3f464f98f86b8eb53e70f2826632df6d747493'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn '8cc12a4ba727f7ac93dbb83cee3f464f98f86b8eb53e70f2826632df6d747493'
lxc-start: The container failed to start.
lxc-start: Additional information can be obtained by setting the --logfile and --log-priority options.
gmacario@mv-linux-powerhorse:~/tmp2/try-ubuntu1404-docker⟫
It turned out that the root cause of this bug is not the symlinked directory, but rather the fact that Docker runs using the LXC provider
Fixed with Commit 7f60021c7b1e03f1acf2f881b5d274af2d19dcdd
(replacing Docker image phusion/baseimage
with gmacario/baseimage
)
Also notified upstream project https://github.com/phusion/baseimage-docker
See Issue https://github.com/phusion/baseimage-docker/issues/159 and Pull Request https://github.com/phusion/baseimage-docker/pull/158
Closing Issue for now.
Will consider reverting to d.image="phusion/baseimage"
if/when Pull Request https://github.com/phusion/baseimage-docker/pull/158 is merged upstream.
On a machine where
~/tmp2
is linked to a directory on another filesystem, as in the exampleif I try to create a VM using the
--provider=docker
I got the following error