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

Fix Docker name conflict bug by updating dockerclient #3551

Merged
merged 2 commits into from
Nov 17, 2017

Conversation

schmichael
Copy link
Member

@schmichael schmichael commented Nov 14, 2017

Fixes #3419

Replaces #3513

This is the fix we need from go-dockerclient: https://github.com/fsouza/go-dockerclient/blob/99ba9a9ff48803e4bf801b025c6be7707d83c421/container.go?utf8=%E2%9C%93#L634-L638

The bug described in moby/moby#35021 means Docker 17.09 incorrectly returns a 400 status code for name conflicts on container creation. This broke go-dockerclient's name conflict detection and thus our's.

A test amd64 linux build is attached.

nomad.gz

"revisionTime": "2017-11-14T19:25:14Z"
},
{
"checksumSHA1": "mi8EDCDjtrZEONRXPG7VHJosDwY=",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we really need swarm runtime?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some sad reason, yes:

[git:b-3419-docker-409-bug]~/go/src/github.com/hashicorp/nomad$ go list -f '{{ join .Deps "\n" }}' | grep swarm
github.com/hashicorp/nomad/vendor/github.com/docker/docker/api/types/swarm
github.com/hashicorp/nomad/vendor/github.com/docker/docker/api/types/swarm/runtime

@schmichael schmichael merged commit d154886 into master Nov 17, 2017
@schmichael schmichael deleted the b-3419-docker-409-bug branch November 17, 2017 00:38
schmichael added a commit that referenced this pull request Dec 12, 2017
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nomad does not handle container names conflict
3 participants