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

[1.9.1-rc1] docker ps goes to the interwebs #18003

Closed
ibuildthecloud opened this issue Nov 16, 2015 · 7 comments
Closed

[1.9.1-rc1] docker ps goes to the interwebs #18003

ibuildthecloud opened this issue Nov 16, 2015 · 7 comments
Assignees
Milestone

Comments

@ibuildthecloud
Copy link
Contributor

I noticed a massive slow down in docker ps and narrowed it down to this goroutine

goroutine 4876 [chan receive]:
net.goLookupIP(0xc2088f7320, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0)
    /usr/local/go/src/net/dnsclient_unix.go:392 +0x492
net.lookupIP(0xc2088f7320, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0)
    /usr/local/go/src/net/lookup_unix.go:66 +0xad
net.func\ufffd\ufffd025(0x0, 0x0, 0x0, 0x0)
    /usr/local/go/src/net/lookup.go:41 +0x55
net.(*singleflight).doCall(0x1da5ef0, 0xc20927d0e0, 0xc2088f7320, 0x6, 0xc208a86a90)
    /usr/local/go/src/net/singleflight.go:91 +0x2f
net.(*singleflight).Do(0x1da5ef0, 0xc2088f7320, 0x6, 0xc208a86a90, 0x0, 0x0, 0x0, 0x0, 0xc2080445a0)
    /usr/local/go/src/net/singleflight.go:61 +0x280
net.lookupIPMerge(0xc2088f7320, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0)
    /usr/local/go/src/net/lookup.go:42 +0xae
net.LookupIP(0xc2088f7320, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0)
    /usr/local/go/src/net/lookup.go:31 +0x5f
github.com/docker/docker/registry.(*ServiceConfig).isSecureIndex(0xc2080a8840, 0xc2088f7320, 0x6, 0x0)
    /go/src/github.com/docker/docker/registry/config.go:163 +0x127
github.com/docker/docker/registry.(*ServiceConfig).NewIndexInfo(0xc2080a8840, 0xc2088f7320, 0x6, 0x0, 0x0, 0x0)
    /go/src/github.com/docker/docker/registry/config.go:272 +0x236
github.com/docker/docker/registry.(*ServiceConfig).NewRepositoryInfo(0xc2080a8840, 0xc2088f7320, 0x1e, 0xc2088f7300, 0x5, 0x0, 0x0)
    /go/src/github.com/docker/docker/registry/config.go:321 +0x1ec
github.com/docker/docker/registry.ParseRepositoryInfo(0xc2088f7320, 0x1e, 0xc20886f180, 0x0, 0x0)
    /go/src/github.com/docker/docker/registry/config.go:365 +0x55
github.com/docker/docker/registry.NormalizeLocalName(0xc2088f7320, 0x1e, 0x0, 0x0)
    /go/src/github.com/docker/docker/registry/config.go:382 +0x44
github.com/docker/docker/graph.(*TagStore).GetID(0xc208587aa0, 0xc2088f7320, 0x24, 0x0, 0x0, 0x0, 0x0)
    /go/src/github.com/docker/docker/graph/tags.go:178 +0x117
github.com/docker/docker/daemon.getImage(0xc208587aa0, 0xc2088f7320, 0x24, 0xc208760640, 0x40, 0x0, 0x0, 0x0, 0x0)
    /go/src/github.com/docker/docker/daemon/list.go:294 +0x13a
github.com/docker/docker/daemon.(*Daemon).transformContainer(0xc208077040, 0xc2086ec600, 0xc208a04660, 0xc20886f180, 0x0, 0x0)
    /go/src/github.com/docker/docker/daemon/list.go:319 +0x28f
github.com/docker/docker/daemon.*Daemon.(github.com/docker/docker/daemon.transformContainer)\ufffd\ufffdfm(0xc2086ec600, 0xc208a04660, 0x0, 0x0, 0x0)
    /go/src/github.com/docker/docker/daemon/list.go:84 +0x4d
github.com/docker/docker/daemon.(*Daemon).reducePsContainer(0xc208077040, 0xc2086ec600, 0xc208a04660, 0xc208a874b0, 0x0, 0x0, 0x0)
    /go/src/github.com/docker/docker/daemon/list.go:127 +0x11c
github.com/docker/docker/daemon.(*Daemon).reduceContainers(0xc208077040, 0xc20884b0e0, 0xc208a874b0, 0x0, 0x0, 0x0, 0x0, 0x0)
    /go/src/github.com/docker/docker/daemon/list.go:97 +0x1bc
github.com/docker/docker/daemon.(*Daemon).Containers(0xc208077040, 0xc20884b0e0, 0x0, 0x0, 0x0, 0x0, 0x0)
    /go/src/github.com/docker/docker/daemon/list.go:84 +0xa5
github.com/docker/docker/api/server/router/local.(*router).getContainersJSON(0xc20874f520, 0x7f49e5cde008, 0xc208efd4a0, 0x7f49e5cddf58, 0xc208b21e00, 0xc208caf860, 0xc208efd380, 0x0, 0x0)
    /go/src/github.com/docker/docker/api/server/router/local/container.go:47 +0x3ba
github.com/docker/docker/api/server/router/local.*router.(github.com/docker/docker/api/server/router/local.getContainersJSON)\ufffd\ufffdfm(0x7f49e5cde008, 0xc208efd4a0, 0x7f49e5cddf58, 0xc208b21e00, 0xc208caf860, 0xc208efd380, 0x0, 0x0)
    /go/src/github.com/docker/docker/api/server/router/local/local.go:109 +0x7b
github.com/docker/docker/api/server.func\ufffd\ufffd004(0x7f49e5cde008, 0xc208efd4a0, 0x7f49e5cddf58, 0xc208b21e00, 0xc208caf860, 0xc208efd380, 0x0, 0x0)
    /go/src/github.com/docker/docker/api/server/middleware.go:87 +0x7c7

Basically what I figured out was that I had a container that was spun up from an image from gcr.io and I had very crappy wifi. While listing the containers and parsing the image tag it appears that it has to go out to the internet to validate something.... Obviously that is bad and slow.

@GordonTheTurtle
Copy link

Hi!

Please read this important information about creating issues.

If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.

If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.

This is an automated, informational response.

Thank you.

For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues


BUG REPORT INFORMATION

Use the commands below to provide key information from your environment:

docker version:
docker info:
uname -a:

Provide additional environment details (AWS, VirtualBox, physical, etc.):

List the steps to reproduce the issue:
1.
2.
3.

Describe the results you received:

Describe the results you expected:

Provide additional info you think is important:

----------END REPORT ---------

#ENEEDMOREINFO

@ibuildthecloud
Copy link
Contributor Author

@LK4D4 @tiborvass

@tiborvass tiborvass added this to the 1.9.1 milestone Nov 16, 2015
@tiborvass
Copy link
Contributor

Thanks @ibuildthecloud will look into it

@tiborvass
Copy link
Contributor

@ibuildthecloud can you try with cherrypicking #17087 ?

@ibuildthecloud
Copy link
Contributor Author

@tiborvass I believe that commit is in rc1 already, right?

@tiborvass
Copy link
Contributor

@ibuildthecloud damn you're right ... :( tired

@calavera
Copy link
Contributor

Fixing

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

4 participants