docker logs | Docker Documentation
docs.docker.com › engine › referenceThe docker logs command batch-retrieves logs present at the time of execution. Note This command is only functional for containers that are started with the json-file or journald logging driver. For more information about selecting and configuring logging drivers, refer to Configure logging drivers.