You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/install/containers/images/backend.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ There are several ways to store data used by applications that run in Docker con
31
31
32
32
We encourage users of the `Plone` images to familiarize themselves with the options available.
33
33
34
-
[The Docker documentation](https://docs.docker.com/) is a good starting point for understanding the different storage options and variations.
34
+
[The Docker documentation](https://docs.docker.com/guides/docker-concepts/running-containers/persisting-container-data) is a good starting point for understanding the different storage options and variations.
35
35
36
36
37
37
## Configuration Variables
@@ -374,22 +374,30 @@ when Plone starts.
374
374
375
375
## Advanced usage
376
376
377
+
This section describes advanced usage of the Plone backend Docker image.
377
378
378
-
### Arbitrary `--user`
379
379
380
-
This image supports running as a (mostly) arbitrary user via `--user` on `docker run`, as long as the owner of `/data` matches:
380
+
### Arbitrary user and persistent data
381
+
382
+
You can run Docker as an arbitrary user with the `--user` option.
383
+
384
+
To persist backend data between restarts of Docker, use both options of `--user` and `-v`.
385
+
386
+
The following command will run the Plone backend container as an arbitrary user, and persist the backend data in a volume, provided that the owner of the directory `/data` is the same as the `--user` option.
381
387
382
388
```shell
383
389
docker run --user="$(id -u)" -v $(pwd)/data:/data plone/plone-backend
384
390
```
385
391
386
-
The main caveat to note is that some environment variables, such as `ADDONS` and `DEVELOP`, will not work:
392
+
````{note}
393
+
Some environment variables, such as `ADDONS` and `DEVELOP`, will not work.
387
394
388
395
```console
389
396
$ docker run --user="$(id -u)" -v $(pwd)/data:/data -e ADDONS="eea.facetednavigation" plone/plone-backend
0 commit comments