MariaDB Container Cheat Sheet
A concise reference of common Docker commands and environment variables used with MariaDB containers.
Get the images
$ docker images -aCreate the network
$ docker network create mynetworkStart The Container With Server Options
$ docker run --rm --detach \
--env MARIADB_ROOT_PASSWORD=sosecret \
--network mynetwork \
--name mariadb-server \
mariadb:latestGet the list of running containers
Start the client from the container
Inspect logs of a container
Restart the container
Run commands within the container
Use a volume to specify configuration options
Use a volume to specify grants during container start
See Also
PreviousInstalling and Using MariaDB via DockerNextMariaDB Server Docker Official Image Environment Variables
Last updated
Was this helpful?

