How to check container status and logs
Introduction
Here is a quick note with the commands to check the status of Docker or Podman containers. This way you can check whether containers are running properly or not.
How To
Check status of all containers
Run the following command:
# Open your terminal applicationsudo docker ps -a# IMPORTANT: Please read the instructions belowInstructions:
- Optional  Replace 
dockerwithpodmanif needed 
# Open Command Prompt: Press Win + R, type cmd, and press Enter.docker ps -a# IMPORTANT: Please read the instructions belowInstructions:
- Optional  Replace 
dockerwithpodmanif needed 
Check detailed information and the logs of a specific container
Run the following commands:
# Open your terminal applicationsudo docker inspect <container_name>sudo docker logs <container_name># IMPORTANT: Please read the instructions belowInstructions:
- Optional  Replace 
dockerwithpodmanif needed - Required  Replace 
<container_name>with the name of the container 
# Open Command Prompt: Press Win + R, type cmd, and press Enter.docker inspect <container_name>docker logs <container_name># IMPORTANT: Please read the instructions belowInstructions:
- Optional  Replace 
dockerwithpodmanif needed - Required  Replace 
<container_name>with the name of the container 
No comments found for this note.
Join the discussion for this note on Github. Comments appear on this page instantly.