Sign inSign up

davescripts/mysql-8

By davescripts

•Updated over 6 years ago

Mysql 8

Image
0

10K+

davescripts/mysql-8 repository overview

⁠Docker Container: MySQL 8

Dockerfile for a Container with MySQL 8.

More details can be found here⁠.

The Dockerfile, and the shell scripts, have been copied from MySQL GitHub repository, specifically from the following folder: https://github.com/mysql/mysql-docker/tree/mysql-server/8.0⁠


⁠Build

Create Docker Image.

docker build -t <image_name> .

Replace <image_name> with the name you want for the image.


Example.

docker build -t image_mysql8  .

⁠Run

Create Docker Container.

docker run -d -p 3306:3306 --name=<container_name> -e MYSQL_ROOT_PASSWORD=<pwd> -e MYSQL_ROOT_HOST=% \
<image_name> --default-authentication-plugin=mysql_native_password

Replace <container_name> with the name you want for the container,
<pwd> with the password for your root user, and
<image_name> with the name of the image you specified on the Build command above.


Example.

docker run -d -p 3306:3306 --name=container_mysql8 -e MYSQL_ROOT_PASSWORD=root -e MYSQL_ROOT_HOST=% \
image_mysql8 --default-authentication-plugin=mysql_native_password

⁠Test

If you have telnet installed on your machine, you can perform a quick test by executing the following command:

telnet localhost 3306

Tag summary

Content type

Image

Digest

Size

117 MB

Last updated

over 6 years ago

docker pull davescripts/mysql-8