Linux and Bash?
No, thanks!
Windows® and Powershell®
docker pull dshatohin/mysql-servercore:latest
5.7-1903 , latest (Dockerfile)
Production ready Windows container with MySQL. Also very useful for testing purposes.
Starting a MySQL instance is simple:
docker run --name mysql-db -e MYSQL_ROOT_PWD=password -d dshatohin/mysql-servercore:latest
mysql-db - name of your containerpassword - your sercret passwordYou also can start container and create database:
docker run --name mysql-db -e MYSQL_ROOT_PWD=password -e DB_NAME=database -e DB_USER=dbuser -e DB_USER_PWD=userpassword -d dshatohin/mysql-servercore:latest
mysql-db - name of your container-e MYSQL_ROOT_PWD=password - your sercret password-e DB_NAME=database - name of your database-e DB_USER=dbuser - name of your user-e DB_USER_PWD=userpassword - your sercret password for dbuserParameters DB_NAME, DB_USER and DB_USER_PWD is working only if you set all of them ¯\_(ツ)_/¯
stack deployExample stack.yml for mysql-servercore:
# Use root/example as user/password credentials
version: '3.1'
services:
db:
image: dshatohin/mysql-servercore:latest
ports:
- 3306:3306
environment:
MYSQL_ROOT_PWD: password
adminer:
image: dshatohin/adminer-servercore:latest
ports:
- 8000:80
Run docker stack deploy -c stack.yml mysql and visit http://swarm-ip:8000, http://localhost:8000 or http://host-ip:8000
Content type
Image
Digest
Size
2.7 GB
Last updated
about 7 years ago
docker pull dshatohin/mysql-servercore