Home >Operation and Maintenance >Docker >How to view error logs in docker
First use the following command to view the ID of the container that has been stopped
docker ps -a
Then use the following command to view the corresponding log information
docker logs id
As shown below Shown:
Recommended tutorial: docker tutorial
The above is the detailed content of How to view error logs in docker. For more information, please follow other related articles on the PHP Chinese website!