Update mariadb with various fixes
This commit is contained in:
parent
ba9aaeb252
commit
0db1572374
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Reference in New Issue