Answers for "docker container list"

9

how to get list of docker containers

1. docker container ls -a
2. docker ps -a
Posted by: Guest on May-23-2020
1

how to get list of all container in docker

docker container ls --all

# CONTAINER ID        IMAGE                 COMMAND                  CREATED             STATUS                     PORTS                  NAMES
# 9f21cb777058        fhsinchy/hello-dock   "/docker-entrypoint.…"   2 minutes ago       Up 2 minutes               0.0.0.0:8080->80/tcp   gifted_sammet
# 6cf52771dde1        fhsinchy/hello-dock   "/docker-entrypoint.…"   3 minutes ago       Exited (0) 3 minutes ago                          reverent_torvalds
# 128ec8ceab71        hello-world           "/hello"                 4 minutes ago       Exited (0) 4 minutes ago                          exciting_chebyshev
Posted by: Guest on November-11-2021
2

list stopped containers

docker ps --filter "status=exited"
Posted by: Guest on May-27-2020
0

docker ps view command

docker ps --no-trunc
Posted by: Guest on May-26-2020
1

docker list

docker ps
Posted by: Guest on April-26-2021

Browse Popular Code Answers by Language