A MySQL Docker Image with TLS support.
3.3K
This image is based on https://hub.docker.com/_/mysql/ and currently support:
cyprien/mysql-tls:5.7)Enviroment variables and configuration files from https://hub.docker.com/_/mysql/ still apply.
At first start, this image will run mysql_ssl_rsa_setup which will build a Certification Authority for TLS transport.
TLS certificates can be found in /var/lib/mysql. You will find the following files:
server-cert.pem : MySQL server certificateserver-key.pem : MySQL server keyca-key.pem : MySQL CA Keyca.pem : MySQL CA Certificateclient-cert.pem : Client certificate (signed by CA)client-key.pem : Client keyThis image will also display at startup, the client certificate, key and the CA.
Run the container:
docker-compose up
Connect to the server:
mysql -u root -p -h 127.0.0.1 --ssl-ca=/var/lib/docker/volumes/dockermysqltls_mysql_tls/_data/ca.pem --ssl-cert=/var/lib/docker/volumes/dockermysqltls_mysql_tls/_data/client-cert.pem --ssl-key=/var/lib/docker/volumes/dockermysqltls_mysql_tls/_data/client-key.pem
Content type
Image
Digest
Size
145.8 MB
Last updated
almost 10 years ago
docker pull cyprien/mysql-tls:5.7