(The below are using the recomended commands although docker ps <options>
would be identicle for now)
- All containers:
docker container ls -a
- Running containers:
docker container ls
(docker ps
is the exact same, but is no longer the recomended command) - All stopped containers:
docker container ls -f "status=exited"
- IDs of running containers:
docker container ls -q
- IDs of all containers:
docker container ls -aq
- Recently created containers:
docker container ls -l