Update mariadb with various fixes

This commit is contained in:
Felipe Augusto 2025-03-06 12:13:37 -03:00 committed by Tianon Gravi
parent ba9aaeb252
commit 0db1572374
1 changed files with 17 additions and 7 deletions

View File

@ -12,6 +12,16 @@ The %%IMAGE%% has a number of tags, and of note is `latest`, as the latest stabl
## Running the container
### Configuration
#### Port binding
By default, the database running within the container will listen on port 3306. You can expose the container port 3306 to the host port 3306 with the `-p 3306:3306` argument to `docker run`, like the command below:
```console
$ docker run --name some-%%REPO%% -p 3306:3306 %%IMAGE%%:latest
```
### Starting using a minimal configuration
The environment variables required to use this image involves the setting of the root user password:
@ -63,7 +73,7 @@ $ docker run --detach --network some-network --name some-application --env APP_D
The following command starts another `%%IMAGE%%` container instance and runs the `mariadb` command line client against your original `%%IMAGE%%` container, allowing you to execute SQL statements against your database instance:
```console
$ docker run -it --network some-network --rm %%IMAGE%% mariadb -hsome-%%REPO%% -uexample-user -p
$ docker run -it --network some-network --rm %%IMAGE%% mariadb -h some-%%REPO%% -u example-user
```
... where `some-%%REPO%%` is the name of your original `%%IMAGE%%` container (connected to the `some-network` Docker network).