Skip to content
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

docker: Error response from daemon: Conflict. The container name "/shippable-dind" is already in use by container #4914

Closed
naorlivne opened this issue Aug 22, 2019 · 4 comments

Comments

@naorlivne
Copy link

Description of your issue:

Upon reaching the sudo docker run -d --privileged --name shippable-dind docker:17.09.1-dind step The following error is received:

docker: Error response from daemon: Conflict. The container name "/shippable-dind" is already in use by container "8d42ce9836972a4991a7abe7dbc2425b909985818952c257d933003ec2958e75". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.

The build then get stuck for a long time before failing due to timeout a few steps later without any other error being shown.

I've had this problem happen on & off in the past but now it seems like it's constant across multiple builds of multiple different repos

Not sure if it's relevent or not but this is a ARM based build running on shippable_shared_aarch64

Please fix as I have 3 projects who's build fails & can't release a ARM version for as a result of this bug.

Partial list of affected builds

@naorlivne
Copy link
Author

naorlivne commented Aug 25, 2019

Happened again on https://app.shippable.com/github/nebula-orchestrator/manager/runs/277/1/console

Are you running the jobs inside a shared server on a shared Docker engine (IE not containerized\jailed\etc)?

based on the errors of:

  sudo docker rm -fv shippable-dind
Error response from daemon: No such container: shippable-dind
  sudo docker run -d --privileged --name shippable-dind docker:17.09.1-dind
docker: Error response from daemon: Conflict. The container name "/shippable-dind" is already in use by container "8d42ce9836972a4991a7abe7dbc2425b909985818952c257d933003ec2958e75". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.

I'm guessing that the issue is that when multiple builds happen on the same time there's a race condition as shippable-dind share the name between jobs.

@naorlivne
Copy link
Author

And once again in https://app.shippable.com/github/nebula-orchestrator/manager/runs/281/1/console

Can I get any reply on this? half the time builds fail and it's been a week since first reported with no response.

@trriplejay
Copy link

Hi @naorlivne, sorry about the delay. The shared nodes were having some docker issues. We've restarted them and everything seems to be back to normal.

Though the nodes are shared, your build will be the only one running on any given node at any one time, so if you have two builds running at the same time, they are running on separate nodes and shouldn't interfere with each other. It could be that one node had this particular issue, and so whenever a build happened to be assigned to that node, you would see this issue, making it intermittent and unpredictable.

please let us know if you're still seeing this problem.

@naorlivne
Copy link
Author

Thanks for the response, I'll be sure to reopen a ticket if the issue repeats itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants