-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
Name is already in use by container #534
Comments
What is the output when you run docker ps -a? It sounds like there is a On Sunday, October 25, 2015, Joel Moss notifications@github.com wrote:
|
Yes there is a container with the same name, but it's the one created by the recipe. I delete the container and the same thing happens. |
Can you try deleting /usr/bin/docker and upgrading to 2.2.0? The cookbook will now install the dynamically linked packages from Docker... I'd like to rule out any wonky devicemapper issues here. -s |
Actually, now that I take a closer look at this, I bet it's failing to properly kill this during the redeploy. |
Same issue here
|
I suspect this might be due to the changes in v2.1.12. The Prior to 2.1.12, stop wasn't sending the signal correctly, then killed the container without a proper shutdown. Post 2.1.12, it sends the correct signal. However, it turns out that most programs running-as-pid-1 do not correctly handle SIGTERM for lack of parental zombie reaping. We had to change the commands used in the redeployer tests to account for this. ^ Based on all that, I suspect the artifactory-oss isn't responding to the SIGTERM properly. However, if this IS the cause, I would expect chef-client to error before it ever gets to the Can you verify that the container doesn't respond to SIGTERM properly? |
The container respond properly to the SIGTERM signal. |
@manuelmazzuola can you verify this is still an issue with the v2.3.5? if it is, double check if the error message is still the same. |
This is still an issue with the v2.3.5
Docker version 1.8.3, build f4bf5c7 Dunno if can help but I've started that container on my computer |
Before chef runs what docker ps output? |
There is no docker before chef runs.
This is the recipe.
Then on the first run of chef.
Here the relative docker logs:
|
Ahh I think this is related to #540. Can you confirm you are using the overlay driver? |
Yes, overlay driver. |
It has a slightly different error, but in both cases a container is created and errors out. You both are using the overlay driver, which we don't test against. I'll setup some test-kitchen runs with it and see if I can reproduce it. |
Can you update to the latest docker and try that? |
Then I'll try right now with aufs. Thank you. |
Let me know if aufs works fine |
overlay with docker 1.9.0 on ubuntu 15.04: success not sure what makes your setup different. there are these notes in the docker docs about overlay.
|
Sorry for the late reply. Same problem here.
Docker logs
In the docker logs it says that it I forgot to say that the This is a new machine terraformed just for this test. May the force be with me. |
I cannot mount a file over an existing one in the container?
Is the same problem ? |
@chasebolt I've found the problem: This not work:
This works:
If the Bind entry is missing docker get mad. So, I've modified my
to
and it works.
|
@manuelmazzuola i think this is fixed in v2.4.2 now. please give it a spin! |
Looks like it's working with
container resource configured with:
docker inspect returns:
and
Another issue @chasebolt ? |
what does your complete docker_container resource look like? |
whatever was, got fixed bumping from v2.4.2 to v2.4.4 (probably was #608) Thanks! |
Here is my recipe...
But every time I run it, I get this error:
Any ideas why?
Even if I manually delete the container, the same error occurs.
The text was updated successfully, but these errors were encountered: