Giter VIP home page Giter VIP logo

Comments (9)

mattnworb avatar mattnworb commented on July 3, 2024

Was there any outcome to this @chris-martin? Is it still reproducible?

from docker-gc.

chris-martin avatar chris-martin commented on July 3, 2024

It is reproducible (tried again just now). I haven't done any further investigation.

The output looks like this (with many lines removed for brevity and container info redacted):

Container running <id> <name>
Container running <id> <name>
Container running <id> <name>
Container running <id> <name>
Container not running <id> <name>
Container not running <id> <name>
Container not running <id> <name>
Container removed <id> <name>
Container removed <id> <name>
Container removed <id> <name>

from docker-gc.

chris-martin avatar chris-martin commented on July 3, 2024

top shows a process called kworker consuming one CPU while the docker-gc container is running.

docker stop is sufficient to kill it.

from docker-gc.

mattnworb avatar mattnworb commented on July 3, 2024

Can you share some details of your setup like OS/distribution, docker version, what version/commit of docker-gc this is, etc?

from docker-gc.

chris-martin avatar chris-martin commented on July 3, 2024

I'm just running exactly the command given above, so the docker-gc version... whatever's on Docker Hub, right?

The Docker version is also given in the first comment.

My distro is NixOS 15.09.

from docker-gc.

mattnworb avatar mattnworb commented on July 3, 2024

I'm afraid I don't have a NixOS setup to try to easily reproduce this on.

One thing you could try is to grab the docker-gc from master and run that with sudo bash -x docker-gc and see if you get the same hanging, and if so let us know which command seems to cause that.

Since it's not an OS we are familiar with any more hints as to what the issue might be would be really helpful to resolve it.

from docker-gc.

chris-martin avatar chris-martin commented on July 3, 2024

Oh, I see what's going on now. The extra output from running it this way helps. It's at this line:

xargs -n 1 $DOCKER rm --volumes=true < containers.reap &>/dev/null || true

If I periodically run docker ps -a | wc -l while it's running I can see that it is removing containers, not hanging. Maybe it should print something for each container so you can tell that it's making progress?

from docker-gc.

skorokithakis avatar skorokithakis commented on July 3, 2024

Same thing happened to me. It seems to be taking ~3 seconds to remove an image, with no output on the command line.

from docker-gc.

stale avatar stale commented on July 3, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from docker-gc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.