When the mysql container in docker cannot start ps-a, it is found that it has been started but automatically closed.

clipboard.png

Mar.13,2021

it is mentioned in the log:

Failed to find valid data directory

then it means that when you set up volume, one of the two corresponding folders may be empty (it is estimated that there is no / yundata/docker-data), you can first remove the "- v / yundata/docker-data/:/var/lib/mysql" paragraph, and then start it to try, it should be no problem.

of course, you can also manually

mkdir /yundata/docker-data

try to create the container again.

I hope I can help you.

Menu