8000 GitHub - ewmanning/prepopulated-mysql-container-example: This is an example on how to make a prepopulated container image with the data stored inside the docker image itself rather than in a volume.
[go: up one dir, main page]

Skip to content

This is an example on how to make a prepopulated container image with the data stored inside the docker image itself rather than in a volume.

Notifications You must be signed in to change notification settings

ewmanning/prepopulated-mysql-container-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

A prepopulated mysql container ?

A mysql/5.7 variant of lindycoder's Dockerfile for mariadb

Building

docker build --build-arg sqlfile=setup.sql --tag my-prepopulated-image .

Remove Intermediate Images

docker rmi -f $(docker images -q --filter label=stage=intermediate)

Running

docker run -it --rm -p 3306:3306 --name my-container my-prepopulated-image

Connecting

mysql -h127.0.0.1 -P 3306 -u root -p

About

This is an example on how to make a prepopulated container image with the data stored inside the docker image itself rather than in a volume.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%
0