New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2016.03.a (and above) AMIs fail to restart Docker: "Error starting daemon: error initializing graphdriver: Device is Busy" #389
Comments
We experience the same with docker on t2.micro (ECS) with Docker version 1.9.1, build a34a1d5/1.9.1. @ChrisRut where you able to workaround this somehow? |
@vpal for now my "workaround" is to not use the latest (2016.03.a) AMI, and continue to use 2015.09.g AMI (ami-33b48a59). |
I was able to workaround this by running a docker command like As a side note, I was also seeing
in the system log Edit: I am starting t2.small instances and running into this. |
@greglboxer thanks for you response. It seems that this has resolved the issue, although I only did some basic testing. |
I can confirm @greglboxer 's suggestion of running
Seems silly to have to do that though. |
I can also confirm this issue persists on the newer 2016.03.b (ami-a1fa1acc) AMI. |
I can confirm that too! Same happens when trying to use s3fs. |
@ChrisRut Thanks for reporting this. It looks like Docker does not seem to do well if it is stopped while initializing the graph (layer) storage for the first time. When we switched back to Waiting for Note that unlike user-data scripts, cloud boothooks execute on every boot, so you'll need to ensure that the boothook can either handle running multiple times or can skip running on subsequent boots (you can use the |
I'm going to close this for now. Please let us know if you continue to have any issues. |
We tried the |
We are having this issue too. Requiring |
On version 2016.09.e the bug still exists. |
I am facing in 2018 version, any update or fix about this. |
While testing the new 2016.03.a AMI (ami-67a3a90d) I noticed that Docker fails to restart cleanly with the following error on r3.xlarge instance types:
This appears to be related to moby/moby#14088 but it is not clear to me from the context of that issue what the appropriate solution is. I've seen recommendations for running
rm -Rf /var/lib/docker/devicemapper
which I have tried before starting, and that results in a slightly different error message:This issue does not occur on the 2015.09.g AMI (ami-33b48a59), and more specifically this issue only seems to be happening on r3.xlarge instance types. The reason we need to restart Docker is in order for it to see our newly mounted ephemeral volume (see also: #384), we are running the following as part of the instance's user-data that runs at boot to mount our ephemeral volumes:
You'll notice there is another "hack" in there to fix a Docker 1.9.1 issue related to: moby/moby#18113
Again to be clear, we are only able to reproduce this on r3.xlarge instance-types using the 2016.03.a AMI (ami-67a3a90d), we are not able to reproduce this on any other instance-type (though we haven't tried them all) also using 2015.09.g AMI (ami-33b48a59) on the r3.xlarge works fine.
The text was updated successfully, but these errors were encountered: