You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ubuntu 15.04 vivid can not start docker 1.7.0 #14035
root@vagrant-ubuntu-vivid-64:/var/lib/docker/devicemapper# service docker status -l
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2015-06-19 07:31:16 UTC; 12s ago
Docs: https://docs.docker.com
Process: 6704 ExecStart=/usr/bin/docker -d -H fd:// (code=exited, status=1/FAILURE)
Main PID: 6704 (code=exited, status=1/FAILURE)
Jun 19 07:31:16 vagrant-ubuntu-vivid-64 systemd[1]: Started Docker Application Container Engine.
Jun 19 07:31:16 vagrant-ubuntu-vivid-64 systemd[1]: Starting Docker Application Container Engine...
Jun 19 07:31:16 vagrant-ubuntu-vivid-64 docker[6704]: time="2015-06-19T07:31:16.596667126Z" level=error msg="Udev sync is not supported. This will lead to unexpected behavior, data loss and errors. For more information, see https://docs.doc...age-driver-option"
Jun 19 07:31:16 vagrant-ubuntu-vivid-64 docker[6704]: time="2015-06-19T07:31:16.596752652Z" level=error msg="[graphdriver] prior storage driver \"devicemapper\" failed: driver not supported"
Jun 19 07:31:16 vagrant-ubuntu-vivid-64 docker[6704]: time="2015-06-19T07:31:16.596788016Z" level=fatal msg="Error starting daemon: error initializing graphdriver: driver not supported"
Jun 19 07:31:16 vagrant-ubuntu-vivid-64 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Jun 19 07:31:16 vagrant-ubuntu-vivid-64 systemd[1]: Unit docker.service entered failed state.
Jun 19 07:31:16 vagrant-ubuntu-vivid-64 systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
This is why the Docker 1.7.0 daemon isn't starting up: Udev sync is not supported. This will lead to unexpected behavior, data loss and errors. For more information, see https://docs.docker.com/reference/commandline/cli/#daemon-storage-driver-option
You were using devicemapper with a statically linked Docker binary. This is known to cause errors of all kinds because devicemapper ends up using a libdevmapper library which isn't linked to udev.
A change introduced by graphdriver: prefer prior driver state #11999 makes it that if you previously used a different storage driver that the one which is currently preferred, we used that older one instead.
The end result is that your system favors something else that devicemapper, but because /var/lib/docker/devicemapper/ exists, we are trying to use it nevertheless and fail because the binary is statically link.
In the end, removing /var/lib/docker/devicemapper/ will fix the issue, but I do think we need to patch that.
FYI I use Docker with overlay on Ubuntu with --storage-driver=overlay, yet mkdir /var/lib/docker/devicemapper && systemctl restart docker was sufficient to reproduce.
@jfrazelle has a point here: we should never even consider prior storage driver data when I ask for a specific --storage-driver.
@icecrime we don't need to patch that. This behavior was due to the storage driver guessing feature. There is a flag to override this devicemapper failure for those that need to migrate images before removing the devicemapper driver or specifying another driver. cc @tianon
@vbatts If not a patch, we probably need docs. Also, don't you agree that in my case --storage-driver=overlay should bypass the election logic entirely?
For users blocked Udev Suppport: false, that need to start their daemon long enough to save or push images, they need to pass their daemon the flag --storage-opt dm.override_udev_sync_check=true.
It will still complain, but will actually start.
If this flag is provided then users will still hit #4036 and other issues.
The script on my ubuntu VM that auto installs security patches (cron-apt) upgraded lxc-docker from 1.5.0 to 1.7.0 last night and now two containers I rely on won't start. Is it safe to downgrade / version pin to 1.5.0 or what would you recommend me to get my containers running again?
Can we help you debug those containers? Are you seeing errors. Also I think
this should be a new issue then. And I recommend downgrading to 1.6.2 then
instead
The script on my ubuntu VM that auto installs security patches (cron-apt)
upgraded lxc-docker from 1.5.0 to 1.7.0 last night and now two containers
I rely on won't start. Is it safe to downgrade / version pin to 1.5.0 or
what would you recommend me to get my containers running again?
—
Reply to this email directly or view it on GitHub #14035 (comment).
@viranch I used your script and it complied and installed dynamically linked docker.
But now when i try to start it i get this error:
Failed to start docker.service: Unit docker.socket failed to load: No such file or directory.
I checked the docker.service file and it does mention that docker requires docker.socket.
I restarted vm, still same error on trying to start docker.
Perhaps i'm missing something?
I am able though to start docker manually (docker -d) just without -H fd:// part.
I installed docker 1.5.0 on debian jessie from the get.docker.com repository via apt-get. Today, I upgraded to docker 1.7.0 via apt-get and I get the error noted above when attempting to start the docker service.
I appreciate that docker is open source and all but reading through this thread, I get the impression that the docker folks don't really care about breaking people's production servers via what should have been a trivial upgrade. I don't know much about docker internals and didn't know I would be expected to in order to use docker. I don't know what a graphdriver is and I certainly did not chose one over any other when installing docker initially. If the previous configuration was unreliable or broken in some way, why was it ever used in the first place? There was not even so much as a mention of this in the either the release notes or the changelog. Even for an open source project, this is frankly quite unacceptable and speaks of poor QA, release management and leadership.
I downgraded to 1.6.2 via instructions found above and my configuration is working again. Looking forward to a fix for this in 1.7.1.
hey @viranch, have you converted from the compiled 1.7.0 docker you set up in your gist to the new dynamic binary apt repo for 1.7.1? if so, did you happen to note the steps you took to do so?
@pjv I just upgraded to 1.7.1, and a simple curl -sSL https://get.docker.com/ | sh works without any extra effort. By "works" I mean, you don't lose your containers and get the upgraded docker engine to choose devicemapper as the storage driver (because there are containers that use it, I think) as opposed to the default aufs :)
EDIT: I did all of this on Ubuntu 14.04.
EDIT 2: Running curl -sSL https://get.docker.com/ | sh will throw a Warning: the "docker" command appears to already exist on this system., simply ignore and let it continue.
@viranch be aware that the default devicemapper configuration is not intended for production use. The default settings are the "just works" configuration, but quite bad from a performance perspective. Tweaking those settings cannot be done automatically, because they depend on your use-case; One of the reasons AUFS is used as the default on Ubuntu (on a clean install)
How feasible would it be to implement the feature of being able to select the storage driver per container in docker engine? That way older systems can move away from devicemapper more easily. Can the docker engine be run with AUFS but fallbacks to legacy storage driver for existing containers that use it and any new containers use AUFS?
@viranch I actually think I saw @rhvgoyal playing with that though on another PR; it may be technically possible, but it's not something with a high priority at the moment (at least, not something that's been actively worked on afaik)
Activity
andrea-spoldi commentedon Jun 19, 2015
Same with 14.04 trusty and 3.13.0-29-generic #53-Ubuntu SMP x86_64
unclejack commentedon Jun 19, 2015
This is why the Docker 1.7.0 daemon isn't starting up:
Udev sync is not supported. This will lead to unexpected behavior, data loss and errors. For more information, see https://docs.docker.com/reference/commandline/cli/#daemon-storage-driver-optionYou were using devicemapper with a statically linked Docker binary. This is known to cause errors of all kinds because devicemapper ends up using a libdevmapper library which isn't linked to udev.
adamwalach commentedon Jun 19, 2015
I have the same problem on ubuntu 14.04.02 LTS (on AWS).
I am using installation script from https://docs.docker.com/installation/ubuntulinux/ (wget -qO- https://get.docker.com/ | sh). Should I use some other installation method? Is this issue connected with running docker on ec2 instance?
jessfraz commentedon Jun 19, 2015
can you apt-get install the Linux-image-extras and use aufs you should not be using a static binary with devmapper the error is desired behavior
icecrime commentedon Jun 19, 2015
Here's the explanation:
devicemapperstorage driver is now impossible to use with a static binary (the one you get on Ubuntu when installing from the script), as explained above Ubuntu 15.04 vivid can not start docker 1.7.0 #14035 (comment) (for reference, this was introduced by devmapper: udev sync is a requirement #11412)The end result is that your system favors something else that
devicemapper, but because/var/lib/docker/devicemapper/exists, we are trying to use it nevertheless and fail because the binary is statically link.In the end, removing
/var/lib/docker/devicemapper/will fix the issue, but I do think we need to patch that.Cc @vbatts.
icecrime commentedon Jun 19, 2015
FYI I use Docker with overlay on Ubuntu with
--storage-driver=overlay, yetmkdir /var/lib/docker/devicemapper && systemctl restart dockerwas sufficient to reproduce.@jfrazelle has a point here: we should never even consider prior storage driver data when I ask for a specific
--storage-driver.vbatts commentedon Jun 19, 2015
@icecrime we don't need to patch that. This behavior was due to the storage driver guessing feature. There is a flag to override this devicemapper failure for those that need to migrate images before removing the devicemapper driver or specifying another driver. cc @tianon
icecrime commentedon Jun 19, 2015
@vbatts If not a patch, we probably need docs. Also, don't you agree that in my case
--storage-driver=overlayshould bypass the election logic entirely?vbatts commentedon Jun 19, 2015
Absolutely. That is intentional.
On Jun 19, 2015 11:02 AM, "Arnaud Porterie" [email protected]
wrote:
vbatts commentedon Jun 19, 2015
For users blocked
Udev Suppport: false, that need to start their daemon long enough to save or push images, they need to pass their daemon the flag--storage-opt dm.override_udev_sync_check=true.It will still complain, but will actually start.
If this flag is provided then users will still hit #4036 and other issues.
hacklschorsch commentedon Jun 19, 2015
The script on my ubuntu VM that auto installs security patches (
cron-apt) upgradedlxc-dockerfrom 1.5.0 to 1.7.0 last night and now two containers I rely on won't start. Is it safe to downgrade / version pin to 1.5.0 or what would you recommend me to get my containers running again?jessfraz commentedon Jun 19, 2015
Can we help you debug those containers? Are you seeing errors. Also I think
this should be a new issue then. And I recommend downgrading to 1.6.2 then
instead
On Friday, June 19, 2015, Florian Sesser [email protected] wrote:
hacklschorsch commentedon Jun 19, 2015
I get pretty much @netroby s output, only my device mapper is version
4.28.0. I'm running Ubuntu 14.04.2 LTS.60 remaining items
vagifverdi commentedon Jul 2, 2015
@viranch I used your script and it complied and installed dynamically linked docker.
But now when i try to start it i get this error:
Failed to start docker.service: Unit docker.socket failed to load: No such file or directory.
I checked the docker.service file and it does mention that docker requires docker.socket.
I restarted vm, still same error on trying to start docker.
Perhaps i'm missing something?
I am able though to start docker manually (docker -d) just without -H fd:// part.
LK4D4 commentedon Jul 2, 2015
@vagifverdi You can download systemd unit and socket here https://github.com/docker/docker/tree/master/contrib/init/systemd
viranch commentedon Jul 4, 2015
@vagifverdi apologies, my gist is for ubuntu 14.04, might not work with systemd.
baptistedonaux commentedon Jul 8, 2015
@vbatts Thanks ! Solution describes works for me !
cu commentedon Jul 8, 2015
I installed docker 1.5.0 on debian jessie from the get.docker.com repository via apt-get. Today, I upgraded to docker 1.7.0 via apt-get and I get the error noted above when attempting to start the docker service.
I appreciate that docker is open source and all but reading through this thread, I get the impression that the docker folks don't really care about breaking people's production servers via what should have been a trivial upgrade. I don't know much about docker internals and didn't know I would be expected to in order to use docker. I don't know what a graphdriver is and I certainly did not chose one over any other when installing docker initially. If the previous configuration was unreliable or broken in some way, why was it ever used in the first place? There was not even so much as a mention of this in the either the release notes or the changelog. Even for an open source project, this is frankly quite unacceptable and speaks of poor QA, release management and leadership.
I downgraded to 1.6.2 via instructions found above and my configuration is working again. Looking forward to a fix for this in 1.7.1.
caarlos0 commentedon Jul 23, 2015
I did
mv /var/lib/docker{,old}and this fixed the problemjchannon commentedon Jul 27, 2015
Thanks @caarlos0
thaJeztah commentedon Jul 27, 2015
In case you missed it; For those looking for dynamically linked binaries; official APT/YUM repositories are now live, and docker 1.7.1 can installed from that repository. Instructions and more information can be found in the blog post here: http://blog.docker.com/2015/07/new-apt-and-yum-repos/
pjv commentedon Jul 31, 2015
hey @viranch, have you converted from the compiled 1.7.0 docker you set up in your gist to the new dynamic binary apt repo for 1.7.1? if so, did you happen to note the steps you took to do so?
viranch commentedon Aug 1, 2015
@thaJeztah awesome!
@pjv I just upgraded to 1.7.1, and a simple
curl -sSL https://get.docker.com/ | shworks without any extra effort. By "works" I mean, you don't lose your containers and get the upgraded docker engine to choosedevicemapperas the storage driver (because there are containers that use it, I think) as opposed to the defaultaufs:)EDIT: I did all of this on Ubuntu 14.04.
EDIT 2: Running
curl -sSL https://get.docker.com/ | shwill throw aWarning: the "docker" command appears to already exist on this system., simply ignore and let it continue.thaJeztah commentedon Aug 1, 2015
@viranch be aware that the default devicemapper configuration is not intended for production use. The default settings are the "just works" configuration, but quite bad from a performance perspective. Tweaking those settings cannot be done automatically, because they depend on your use-case; One of the reasons AUFS is used as the default on Ubuntu (on a clean install)
viranch commentedon Aug 1, 2015
@thaJeztah I'm aware. Thanks for the heads up.
How feasible would it be to implement the feature of being able to select the storage driver per container in docker engine? That way older systems can move away from devicemapper more easily. Can the docker engine be run with AUFS but fallbacks to legacy storage driver for existing containers that use it and any new containers use AUFS?
thaJeztah commentedon Aug 1, 2015
@viranch I actually think I saw @rhvgoyal playing with that though on another PR; it may be technically possible, but it's not something with a high priority at the moment (at least, not something that's been actively worked on afaik)
FelikZ commentedon Oct 30, 2015
@fjmk thanks, aufs and removing devicemapper helps!