Skip to content
All references

DevOps reference

Docker Commands

Find Docker and Compose inspection commands and small examples without running anything from the page.

9 of 9 entries

Inspect

List containers

docker ps --all

Includes stopped containers as well as running ones.

Inspect

List images

docker image ls

Shows locally available images and tags.

Inspect

Container details

docker inspect example-app

Outputs configuration and runtime metadata; it can contain secrets.

Inspect

Container logs

docker logs --tail 100 example-app

Reads the latest 100 log lines; logs can expose application data.

Inspect

Resource usage

docker stats --no-stream

Takes a resource-usage snapshot for running containers.

Change

Build an image

docker build -t example-app:local .

Builds from the current context; review Dockerfile commands and included files first.

Compose

Compose validation

docker compose config --quiet

Checks the resolved Compose configuration without printing it.

Compose

Compose services

docker compose ps

Shows containers belonging to the current Compose project.

Compose

Compose startup

docker compose up -d

Creates or updates services in the background; this changes running workloads.