Skip to content

Docker mysql with data only container approach

License

Notifications You must be signed in to change notification settings

typista/docker-mysql-set

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-mysql

Docker mysql with data only container approach

Step one (Build the data container):

docker build -t slok/mysql-data ./mysql-data

Step two (Build the mysql container):

docker build -t slok/mysql ./mysql

Step three (Run the data container):

docker run slok/mysql-data

Step four (Run the mysql container with data volumes):

docker run --volumes-from mysql-data slok/mysql

Backups

enter or run a command in the data container as a normal container:

docker run -it --volumes-from mysql-data busybox /bin/sh

About

Docker mysql with data only container approach

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published