Skip to content

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 application
sudo docker ps -a
# IMPORTANT: Please read the instructions below
Instructions:
  • Optional Replace docker with podman if needed

Check detailed information and the logs of a specific container

Run the following commands:

# Open your terminal application
sudo docker inspect <container_name>
sudo docker logs <container_name>
# IMPORTANT: Please read the instructions below
Instructions:
  • Optional Replace docker with podman if needed
  • Required Replace <container_name> with the name of the container

Favorites

Comments

    No comments found for this note.

    Join the discussion for this note on Github. Comments appear on this page instantly.

    Copyright 2021- Fiction Becomes Fact