GitHub - NicholasMurray/UsefulDockerCommands

Skip to content

Navigation Menu

Sign in

Appearance settings

UsefulDockerCommands

Show all running docker processes

docker ps

Search all running docker processes by port

docker ps | grep 8000

Stop container by id

docker stop a1b2c3d4e5f6

To retrieve Docker logs from the last hour for a specific container with container_id:

docker logs --since=1h 'container_id'

Docker logs

If the logs are large, then try considering to save logs into to a file:

docker logs --since=1h 'container_id' > /path/to/save.txt