Mysql is installed in the container. mysql data files are put in the container. Is it better to mount MySQL through volumn?

  docker, question

Let’s give our opinions:)

It is recommended to use the mount method of volumn, which can more conveniently manage and back up database files, and will not cause the problem of data loss after all container are deleted.