Skip to content

docker stop failed but process still listed #109

Closed

Description

@kencochrane

I tried to stop a container, it failed, and then I had to ^C to get out, and then did a docker ps it showed it was still running. When I tried to stop again, it threw an error, saying it was already stopped.

vagrant@vagrant-ubuntu-12:~$ docker stop 02469cd2
2013/03/19 17:39:35 docker stop 02469cd2
2013/03/19 17:39:45 Container 02469cd2 failed to exit within 10 seconds of SIGTERM - using the force

^C

vagrant@vagrant-ubuntu-12:$ docker ps
2013/03/19 18:09:25 docker ps
ID IMAGE COMMAND CREATED STATUS COMMENT
02469cd2 68ac6d91bbf381ac /bin/sh -c while tru 41 minutes ago Up 31 minutes
vagrant@vagrant-ubuntu-12:
$ docker stop 02469cd2
2013/03/19 18:09:41 docker stop 02469cd2
2013/03/19 18:09:41 lxc-kill: failed to get the init pid
2013/03/19 18:09:41 Failed to send SIGTERM to the process, force killing
2013/03/19 18:09:41 Error: os: process already finished
Error: os: process already finished

Activity

  1. creack commented on Apr 6, 2013

    @creack
    Contributor

    fixed by #318

  2. chenyf commented on Aug 16, 2013

    @chenyf

    docker server need open about 5 file descriptors for each container, so if you want to running more containers, you must check ulimit -n, and set it big enough, otherwise there has a lot of trick problems.

  3. added a commit that references this issue on Apr 30, 2014
  4. added a commit that references this issue on Apr 19, 2016
  5. added 2 commits that reference this issue on Oct 30, 2017
    2923a77
    daaa403
  6. added a commit that references this issue on Nov 20, 2018
  7. added a commit that references this issue on May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions