Skip to content

Commit 9dffa86

Browse files
committed
Update README for $DOCKER_USER deprecation
1 parent 345ccc0 commit 9dffa86

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,6 @@ mkdir ./data
9595
sed -i '/DATA_DIR/d' .env
9696
echo 'DATA_DIR=./data' >> .env
9797

98-
# configure docker to write files as your local user
99-
# see: https://github.com/pelias/docker#variable-docker_user
100-
# note: use 'gsed' instead of 'sed' on a Mac
101-
sed -i '/DOCKER_USER/d' .env
102-
echo "DOCKER_USER=$(id -u)" >> .env
103-
10498
# run build
10599
pelias compose pull
106100
pelias elastic start
@@ -183,7 +177,6 @@ Then use your text editor to modify the `.env` file to reflect your new path, it
183177
```bash
184178
COMPOSE_PROJECT_NAME=pelias
185179
DATA_DIR=/tmp/pelias
186-
DOCKER_USER=1000
187180
```
188181

189182
You can then list the environment variables to ensure they have been correctly set:
@@ -200,9 +193,7 @@ Note: changing the `COMPOSE_PROJECT_NAME` variable is not advisable unless you k
200193

201194
### Variable: DOCKER_USER
202195

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.
196+
This variable is no longer used, and will be ignored. If you still have it in your `.env` file, you can safely remove it.
206197

207198
## CLI commands
208199

0 commit comments

Comments
 (0)