Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 500 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 500 Bytes

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