Skip to content

Prevent deadlock on --net=container:<self>#12799

Merged
LK4D4 merged 1 commit intomoby:masterfrom
aidanhs:aphs-fix-net-container-deadlock
Apr 27, 2015
Merged

Prevent deadlock on --net=container:<self>#12799
LK4D4 merged 1 commit intomoby:masterfrom
aidanhs:aphs-fix-net-container-deadlock

Conversation

@aidanhs
Copy link
Copy Markdown
Contributor

@aidanhs aidanhs commented Apr 27, 2015

Fixes #12606.
At least, it would have prevented the deadlock I saw.

To be honest, I don't know why there were containers being created on my machine attempting to --net=container:<self> in the first place. Other people have access to the daemon, but inspect output was indicating that the full container id had been used (i.e. --net=container:<cid>) which is obviously impossible because you can't know the cid before you create the container.
So I wonder if there's a second bug which has been auto-populating that field? It'll be interesting to see if people start hitting this new error message.

@aidanhs
Copy link
Copy Markdown
Contributor Author

aidanhs commented Apr 27, 2015

cc @LK4D4

@aidanhs aidanhs changed the title Prevent deadlock on --net=container:self Prevent deadlock on --net=container:<self> Apr 27, 2015
@aidanhs aidanhs force-pushed the aphs-fix-net-container-deadlock branch from cfc0a41 to 7ca7ff8 Compare April 27, 2015 08:21
@aidanhs
Copy link
Copy Markdown
Contributor Author

aidanhs commented Apr 27, 2015

Are windows tests known to be a bit flaky?
TestContainerApiStartVolumesFrom failed (but seemed unrelated) so I pushed a style tweak I wanted anyway and now the windows build is fine...

@estesp
Copy link
Copy Markdown
Contributor

estesp commented Apr 27, 2015

@aidanhs thanks for updating the test--this is a good catch!

LGTM

@LK4D4
Copy link
Copy Markdown
Contributor

LK4D4 commented Apr 27, 2015

Lol :)
LGTM

LK4D4 added a commit that referenced this pull request Apr 27, 2015
Prevent deadlock on --net=container:<self>
@LK4D4 LK4D4 merged commit 02d73d9 into moby:master Apr 27, 2015
@aidanhs aidanhs deleted the aphs-fix-net-container-deadlock branch April 27, 2015 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docker ps command hangs

4 participants