Is the data generated by the container on the disk after the Docker container is closed?

For example, I run a MySQL database in a container, which contains 1 T data, the container is closed, the 1 T data still exists? Can I find this data from the host (or can I use the new container to access this data)? Yes, how is the process? 2015-03-10 add comment share it

  • Weibo
  • QZONE
  • Micro letter

Did not find the relevant results

    Invited:

    Yang zhangxian – Cisco Systems Operation and Maintenance Engineer

    Agree from: bazz2 , -knowmara


    Upstairs, if you want data to be persistent, use volume or data container so that you can reuse the previous data with -v or –volumes-from after the container is closed.

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