Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Dead containers break docker ps -a output #1421

Closed
schmunk42 opened this issue Nov 16, 2015 · 2 comments
Closed

Dead containers break docker ps -a output #1421

schmunk42 opened this issue Nov 16, 2015 · 2 comments

Comments

@schmunk42
Copy link

I have the exact same issue as mentioned in #985 (comment)

If there's a DEAD container in the swarm I can no longer use docker-compose or docker ps -a.

To work around this issue, I need to login to every swarm machine and find the DEAD containers:

root@tim-a1:~# docker ps -a
CONTAINER ID        IMAGE                                                         COMMAND                   CREATED             STATUS                        PORTS               NAMES
f1be81586920        tutum/haproxy:latest                                          "python /haproxy/main"    42 minutes ago      Exited (137) 13 minutes ago                       feuerwehrblue_khfhaproxy_1
[....]
7061ef7b78d5        phundament/php:5.6-fpm-4.4.1-dev                              "/bin/sh -c 'echo \"up"   56 minutes ago      Dead                                              
677f84c889e9        swarm                                                         "/swarm --debug join "    About an hour ago   Up About an hour              2375/tcp            swarm-agent

Container removal throws an error...

root@tim-a1:~# docker rm -fv 7061
Error response from daemon: Driver aufs failed to remove init filesystem 7061ef7b78d573583126e92e814f414b6dcfedec5d4fa930b84b168cf3708a06-init: rename /var/lib/docker/aufs/mnt/7061ef7b78d573583126e92e814f414b6dcfedec5d4fa930b84b168cf3708a06-init /var/lib/docker/aufs/mnt/7061ef7b78d573583126e92e814f414b6dcfedec5d4fa930b84b168cf3708a06-init-removing: device or resource busy
Error: failed to remove containers: [7061]

... but looks like it's gone now

root@tim-a1:~# docker rm -fv 7061
Error response from daemon: no such id: 7061
Error: failed to remove containers: [7061]

... and my swarm is working as expected afterwards.

Running swarm 1.0.0 and docker 1.9.0

@schmunk42 schmunk42 changed the title DEAD containers break docker ps -a output Dead containers break docker ps -a output Nov 16, 2015
@batmat
Copy link

batmat commented Nov 20, 2015

FWIW, same issue with Docker 1.9.0 and Swarm 0.4.0 (gonna upgrade, yes, but might also be interesting to show the issue was already there in this version :)).

@aluzzardi
Copy link
Contributor

ping @docker/swarm-maintainers

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants