Docker fails to start the container, and then check the logs. When viewing the container in docker logs, an error message appears:

docker 启动The container failed, and thendocker logs an error occurred when viewing the container:
Insert image description here

error from daemon in stream: Error grabbing logs: invalid character 'l' after object key:value pair

Solution seen on the Internet:
Find your log file directory:

docker inspect --format='{
    
    {.LogPath}}'  容器名称或id

Insert image description here

You can see the logs after deleting or backing them up.
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_40796433/article/details/134572322