From ad7975c82680de20b8e913aae511944aa06fb115 Mon Sep 17 00:00:00 2001 From: Guiorgy Date: Sat, 2 Aug 2025 23:07:53 +0400 Subject: [PATCH] docker: Use `--rm` in the example about adding users When creating containers to run a single one-off command that alters a volume, the `--rm` option is needed, otherwise that container is left around and can cause confusion later on. https://github.com/albertito/chasquid/pull/69 Amended-by: Alberto Bertogli Adjusted commit message. --- docker/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/README.md b/docker/README.md index 75412ec..f704264 100644 --- a/docker/README.md +++ b/docker/README.md @@ -52,7 +52,7 @@ To add your first user to the image: ``` $ docker run \ --mount source=chasquid-data,target=/data \ - -it --entrypoint=/add-user.sh \ + --rm -it --entrypoint=/add-user.sh \ registry.gitlab.com/albertito/chasquid:main Email (full user@domain format): pepe@example.com Password: