Sign inSign up

rhyscampbell/dockermariadb

By rhyscampbell

•Updated almost 7 years ago

A MariaDB 10.4 instance running on a CentOS 8 Docker container

Image
0

10K+

rhyscampbell/dockermariadb repository overview

⁠MariaDB Docker Image

This Docker Image runs MariaDB in CentOS 8 and exposes the following ports...

  • 3306 - MariaDB port

⁠Build and run the Docker image

docker build -t mariadb .
docker volume create mariadb
docker run -tid --mount source=mariadb,target=/var/lib/mysql --rm -p 3306:3306 --name mariadb mariadb
docker container ls

⁠Verify ports are open on host

  • MacOS
netstat -anp tcp | grep LISTEN
  • Linux
netstat -tulpn | grep LISTEN

⁠Access the MariaDB instance from the host

mysql

⁠Delete the container volumes

docker volume rm mariadb

⁠MariaDB Users

Docker Image Default root password = secret

Edit the mariadb.sql file with your own customisations before rebuilding the image.

Tag summary

Content type

Image

Digest

Size

239.5 MB

Last updated

almost 7 years ago

docker pull rhyscampbell/dockermariadb