Add code highlighting to volume mount example
Double tab indentation required to add code in a list
This commit is contained in:
parent
3103a52b29
commit
d744db7ae1
|
|
@ -92,7 +92,7 @@ The Docker documentation is a good starting point for understanding the differen
|
||||||
1. Create a data directory on a suitable volume on your host system, e.g. `/my/own/datadir`.
|
1. Create a data directory on a suitable volume on your host system, e.g. `/my/own/datadir`.
|
||||||
2. Start your `%%REPO%%` container like this:
|
2. Start your `%%REPO%%` container like this:
|
||||||
|
|
||||||
docker run --name some-%%REPO%% -v /my/own/datadir:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d %%REPO%%:tag
|
docker run --name some-%%REPO%% -v /my/own/datadir:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d %%REPO%%:tag
|
||||||
|
|
||||||
The `-v /my/own/datadir:/var/lib/mysql` part of the command mounts the `/my/own/datadir` directory from the underlying host system as `/var/lib/mysql` inside the container, where MySQL by default will write its data files.
|
The `-v /my/own/datadir:/var/lib/mysql` part of the command mounts the `/my/own/datadir` directory from the underlying host system as `/var/lib/mysql` inside the container, where MySQL by default will write its data files.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue