[Problem solving] docker can't start

Problem description: Yesterday afternoon, I integrated the code of my colleague and found that after the docker was started, the docker ps could not see it, and the docker ps -a found that the docker container was not started.
Tried to start multiple times and found that it couldn't start.

After searching, I found that https://segmentfault.com/q/1010000007434058
Simply put, it is very likely that an error occurred when docker executed the command, causing the container to exit.

View the log through sudo docker logs -f containerID to see that there is an error in the code.
After modifying the code, restart the container and find that the container starts normally.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325964146&siteId=291194637