Minimal environment with MySQL server:
alpine base imageI don't make any warranties about the security of this container. It's a toy for development purposes.
By default, no users or privileges are added or subtracted from the standard MySQL config. You can grant access by passing environment variables when the container is started.
ROOT_PASSWORD grants password-based access to root from any host.USERNAME creates a new user with access from any host (if a value for PASSWORD is also specified, the user will require that password), and with full privileges on the entire database.$ docker run -d --name cool_mysql -e ROOT_PASSWORD=docker jbergknoff/mysql
$ docker run -it --rm --link cool_mysql:db jbergknoff/mysql-client sh
# mysql -h db -u root -p
Enter password: [docker]
Welcome to the MySQL monitor. Commands end with ; or \g.
...
Content type
Image
Digest
sha256:2f463557a…
Size
32.6 MB
Last updated
about 6 years ago
docker pull jbergknoff/mysql