Fixes problems with html-like words
As a workaround to https://github.com/docker/hub-feedback/issues/1849 remove < and > characters from the example command.
This commit is contained in:
parent
77a17ad334
commit
0746a03991
|
|
@ -46,7 +46,7 @@ $ docker run --name some-%%REPO%% -d -p 8080:8080 -e DATA_DIR=/var/lib/geonetwor
|
||||||
|
|
||||||
## Persist data
|
## Persist data
|
||||||
|
|
||||||
If you want the data directory to live beyond restarts, or even destruction of the container, you can mount a directory from the docker engine's host into the container. - `-v <host path>:<data directory>`. For instance this, will mount the host directory `/host/geonetwork-docker` into `/var/lib/geonetwork_data` on the container:
|
If you want the data directory to live beyond restarts, or even destruction of the container, you can mount a directory from the docker engine's host into the container. - `-v /host/path:/path/to/data/directory`. For instance this, will mount the host directory `/host/geonetwork-docker` into `/var/lib/geonetwork_data` on the container:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker run --name some-%%REPO%% -d -p 8080:8080 -e DATA_DIR=/var/lib/geonetwork_data -v /host/geonetwork-docker:/var/lib/geonetwork_data %%IMAGE%%
|
$ docker run --name some-%%REPO%% -d -p 8080:8080 -e DATA_DIR=/var/lib/geonetwork_data -v /host/geonetwork-docker:/var/lib/geonetwork_data %%IMAGE%%
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue