Public Repository

Last pushed: a year ago
Short Description
MySQL Server Repository
Full Description

This repository contains the MySQL Server container based on an Ubuntu Docker image.

To build the image, run in the project directory the command:
docker build -t <name-image> .

To run the image with the default user (user: userdock; password: 123) and the persistentDB-path, run the command:
docker run -p <host-port>:3306 -v <host-DBpath>:/var/lib/mysql -d <id-image>
note: docker must have permissions on host-DBpath

To run the image with a specified user, run the command:
docker run -p <host-port>:3306 -v <host-DBpath>:/var/lib/mysql -d <id-image> startupDB.sh <username> <password>

For debug run the command:
docker run -p <host-port>:3306 -v <host-DBpath>:/var/lib/mysql -it <id-image> bash
startupDB.sh &
you may add user and password arguments with startupDB.sh

Source code:
./Dockerfile http://bit.ly/269voxW
./startupDB.sh http://bit.ly/269vupl

Docker Pull Command
Owner
giancarlopiccolo

Comments (0)