Skip to content

docker ps -a --filter 'exited=0' hangs, causes any further docker ps to hang #8909

@abevoelker

Description

@abevoelker

Per the title, if I do a docker ps -a --filter 'exited=0', it hangs and makes all future calls to docker ps hang:

$ service docker start
docker start/running, process 12984
$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
$ docker ps -a --filter 'exited=0'
^C$ docker ps
^C$ 

I have to restart the daemon to be able to do docker ps again.

Here's an strace.

This is all happening on docker 1.3.1. I don't know if it's related to #7905 or #7999 so opened a new issue to be safe.

$ docker version
Client version: 1.3.1
Client API version: 1.15
Go version (client): go1.3.3
Git commit (client): 4e9bbfa
OS/Arch (client): linux/amd64
Server version: 1.3.1
Server API version: 1.15
Go version (server): go1.3.3
Git commit (server): 4e9bbfa

$ docker info
Containers: 62
Images: 656
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Dirs: 781
Execution Driver: native-0.2
Kernel Version: 3.13.0-36-generic
Operating System: Ubuntu 14.04.1 LTS
WARNING: No swap limit support

edit: docker ps --filter 'exited=0' without the -a is okay and doesn't hang; it's when the flags are combined that causes the issue. Also I noticed I was mixing long and short flags, but docker ps -a -f 'exited=0' also hangs.

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