CentOS 6.6 MySQL 5.5 Container - 349.8 MB
998
MySQL Container Build
Built from darkside/centos66
Build container using default values.
docker build -t darkside/mysql .
Running the container
The container is built to allow several configurable variables to be passed in at runtime. The default values are as follows:
ENV MYSQL_PASS P@ssword
ENV MYSQL_DB applicaton
ENV MYSQL_CLIENTADDR %
ENV APP_USER dbuser
ENV APP_PASS dbpass
Run the container using default values
docker run -d -it --name mysql -h mysql -p 3306:3306 darkside/mysql
This will assume the following
Run the container substituting the $varables with your own custom values
docker run -d -it \
--name mysql \
-h mysql \
-p 3306:3306 \
-e MYSQL_CLIENTADDR='%' \
-e MYSQL_PASS='P@ssword' \
-e MYSQL_DB='myapplication' \
-e APP_USER='dbuser' \
-e APP_PASS='dbpass' \
darkside/mysql
**Navigate to the IP address of the server on the port specified (3306 default) with mysql workbench or your db tool of choice to access mysql
Content type
Image
Digest
sha256:ee949395c…
Size
113.6 MB
Last updated
almost 11 years ago
docker pull darkside/mysql