How does MySQL's configuration files and data files be mounted separately on the host

I have downloaded a mysql image. 2015-06-30 add comment share it

  • Weibo
  • Micro letter

Did not find the relevant results


    Peter Pan – TenxCloud partner

    Agree from: wang_qinli

    You can define different volumes, such as VOLUME ["/ etc / mysql", "/ var / lib / mysql"], in front of the configuration file directory, followed by the data file directory.
    When you start the container, use -v mapping to the host on the different directories on it.

    Heads up! This alert needs your attention, but it's not super important.