The command is strongly associated with the Docker Container Lifecycle.

The docker ps (short for docker container ls) command allows you to check the CONTAINER_ID, IMAGE_NAME, COMMAND, CREATED_TIME, STATUS, PORTS, and NAME of the running container.

docker ps [options]

Example

You can add an -a or -all flag to docker ps to show information about all containers you’ve run before. Without this flag, you will only see the currently running containers.

docker ps -a

References