Skip to content

docker ps shows empty list in standalone mode #107

Closed

Description

@srid

ubuntu 12.04 64-bit and compiling docker from source:

2013/03/19 18:00:18 docker run -a -i -t base /bin/bash
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
root@3a63b2b2:/# 

i assumed that the bash warnings are irrelevant. running docker ps on another terminal showed an empty list even though the container is still running (see above)? i had to run docker ps -a to see it:

$ sudo docker ps -a
ID          IMAGE              COMMAND                CREATED          STATUS      COMMENT
3a63b2b2    0fa5bece7930a659   /bin/bash              6 seconds ago    Exit 0 
[...]

apparently the container is marked as exitted, while the shell (/bin/bash) is still running.

Activity

  1. creack commented on Mar 20, 2013

    @creack
    Contributor

    Did you start docker in stand alone without the daemon?

  2. srid commented on Mar 20, 2013

    @srid
    Author

    Did you start docker in stand alone without the daemon?

    yes, but isn't that the default behaviour?

    but out of curiosity i tried running the daemon and that fixes this issue (though the nc port mapping example fails, so i'm looking into that).

  3. reopened this on Apr 6, 2013
  4. creack commented on Apr 6, 2013

    @creack
    Contributor

    Will be fixed by #27.

  5. creack commented on Apr 19, 2013

    @creack
    Contributor

    The standalone mode as been deprecated then removed. Closing.

  6. added a commit that references this issue on Apr 30, 2014
  7. added a commit that references this issue on Apr 20, 2016
  8. added a commit that references this issue on Nov 29, 2018
  9. added a commit that references this issue on Oct 27, 2022
  10. 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