Sunday 2 June 2019

Docker: Get all the containers


'docker container ls -a' list all the running and stopped containers (Whereas docker container ls prints only the running containers).

$docker container ls
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
$
$docker container ls -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                     PORTS               NAMES
c9a1bfa89e1e        jboss/wildfly       "/opt/jboss/wildfly/…"   9 minutes ago       Exited (0) 2 minutes ago                       infallible_elgamal
ecc56427245c        hello-world         "/hello"                 22 hours ago        Exited (0) 22 hours ago                        dazzling_dewdney



Previous                                                 Next                                                 Home

No comments:

Post a Comment