To list all containers, including both running and stopped ones, you can use the docker ps command with the -a option. Here’s the command:
docker ps -a
This will display a comprehensive list of all containers on your system, along with their statuses and other relevant details.
