How to create populated MySQL Docker Image on build time

前端 未结 6 709
借酒劲吻你
借酒劲吻你 2020-12-09 03:59

I would like to create a MySQL Docker image with data already populated.

I want to create 3 layers like this:

        |---------------------|--------         


        
6条回答
  •  被撕碎了的回忆
    2020-12-09 04:41

    So my solution to this problem was just NOT to layer everything but create a base image and use --volumes-from to inject the database files from a data-only container.

提交回复
热议问题