From b35863db2a572c08e4c66ae6459756a0ab526184 Mon Sep 17 00:00:00 2001 From: "Yury V. Zaytsev" Date: Sun, 2 Mar 2025 14:51:05 +0100 Subject: [PATCH] Update Docker instructions in the README This adds support for running the client as user. Without proper UID/GID mapping, the client will mess up file permissions in the directory it is running in and/or create files that belong to root. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 38476c1..d0f3827 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ You can skip the installation and run the Transifex client from Docker if it is available in your system. All you have to do is put this line: ```sh -alias tx='touch ~/.transifexrc; docker run --rm -i -t -v `pwd`:/app -v ~/.transifexrc:/.transifexrc -v /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt transifex/txcli --root-config /.transifexrc' +alias tx='touch ~/.transifexrc; docker run --rm -i -t --user `id -u`:`id -g` -v `pwd`:/app -v ~/.transifexrc:/.transifexrc -v /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt -v "/etc/group:/etc/group:ro" -v "/etc/passwd:/etc/passwd:ro" -v "/etc/shadow:/etc/shadow:ro" transifex/txcli --root-config /.transifexrc' ``` to your `~/.bashrc` / `~/.zshrc`. (The first time you use it you will have to