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: README.md
+7-10Lines changed: 7 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,12 @@ You will need to have a [modern version of `docker`](https://docs.docker.com/eng
40
40
41
41
This project supports Linux and Mac OSX operatings systems. Windows is currently [not supported](https://github.com/pelias/docker/issues/124).
42
42
43
+
### Permissions
44
+
45
+
In order to ensure security, Pelias docker containers, and the `pelias` helper script, will not run as a root user!
46
+
47
+
Be sure you are running as a non-root user and that this user can execute `docker` commands. See the Docker documentation article [Manage Docker as a non-root user](https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user) to do this.
48
+
43
49
## Requirements for Linux
44
50
- Install `util-linux` using your distribution's package manager
45
51
- Alpine Linux: `sudo apk add util-linux`
@@ -95,12 +101,6 @@ mkdir ./data
95
101
sed -i '/DATA_DIR/d' .env
96
102
echo'DATA_DIR=./data'>> .env
97
103
98
-
# configure docker to write files as your local user
@@ -183,7 +183,6 @@ Then use your text editor to modify the `.env` file to reflect your new path, it
183
183
```bash
184
184
COMPOSE_PROJECT_NAME=pelias
185
185
DATA_DIR=/tmp/pelias
186
-
DOCKER_USER=1000
187
186
```
188
187
189
188
You can then list the environment variables to ensure they have been correctly set:
@@ -200,9 +199,7 @@ Note: changing the `COMPOSE_PROJECT_NAME` variable is not advisable unless you k
200
199
201
200
### Variable: DOCKER_USER
202
201
203
-
All processes in Pelias containers are run as non-root users. By default, the UID of the processes will be `1000`, which is the first user ID on _most_ Linux systems and is likely to be a good option. However, if restricting file permissions in your data directory to a different user or group is important, this can be overridden by setting the `DOCKER_USER` variable.
204
-
205
-
This variable can take just a UID or a UID:GID combination such as `1000:1000`. See the [docker-compose](https://docs.docker.com/compose/compose-file/#domainname-hostname-ipc-mac_address-privileged-read_only-shm_size-stdin_open-tty-user-working_dir) and [docker run](https://docs.docker.com/engine/reference/run/#user) documentation on controlling Docker container users for more information.
202
+
This variable is no longer used, and will be ignored. If you still have it in your `.env` file, you can safely remove it.
0 commit comments