Create MySQL custom image:
MySQL custom image can be created using Dockerfile:
Create custom .sql script which could have DDL, DML, Meta Data:
/mysql/docker_compose1/sql_scripts.sql
cd to directory /mysql/docker_compose1/:
Create Dockerfile:
Include following into the file Dockerfile
FROM mysql
COPY ./sql_scripts.sql/ /docker-entrypoint-initdb.d/
Create own MySQL image:
#docker build -t docker_compose1 .
MySQL custom image can be created using Dockerfile:
Create custom .sql script which could have DDL, DML, Meta Data:
/mysql/docker_compose1/sql_scripts.sql
cd to directory /mysql/docker_compose1/:
Create Dockerfile:
Include following into the file Dockerfile
FROM mysql
COPY ./sql_scripts.sql/ /docker-entrypoint-initdb.d/
Create own MySQL image:
#docker build -t docker_compose1 .
Comments
Post a Comment