Skip to content

gauravubnare/docker-mysql-5.1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

MySQL 5.1 on Debian 10

Setups to build docker image

  1. Clone the repo.

git clone https://github.com/gauravubnare/docker-mysql-5.1.git

  1. Build the Image (Assuming Docker Installed)

In the git dir

cd docker-mysql-5.1.git

docker build -t mysql-5.1 .

  1. Create a Docker Volume to mount /var/lib/mysql (Optional)

docker volume create mysql-volume

  1. Spin up the Container :)

without volume-

docker run -it -p 3306:3306 mysql-5.1

with volume-

docker run -it -p 3306:3306 -v mysql-volume:/var/lib/mysql mysql-5.1

Note: Mounted volume you can found in /var/lib/docker/volume/mysql-volume

Once you deploy the container it will run "mysql_secure_installation"

test

About

Dockerfile with Debian 10 and mysql 5.1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published