The statement is incorrect. The docker logs command can retrieve logs from both running and stopped containers, provided that the container's logging driver and configuration support log retrieval after the container has stopped.
Learn More
AI Generated Content may display inaccurate information, always double-check anything important.
What are Docker containers?
What is a logging driver in Docker?
What happens to container logs when a container stops?