git » chasquid » commit ad7975c

docker: Use `--rm` in the example about adding users

author Guiorgy
2025-08-02 19:07:53 UTC
committer Alberto Bertogli
2025-08-03 09:34:37 UTC
parent d82380901c798bc6befe5c1db2ac54c80a17268b

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 <albertito@blitiri.com.ar>
  Adjusted commit message.

docker/README.md +1 -1

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: