Forráskód Böngészése

docs: document Docker bind-mount permissions

Eli Sterling 3 napja
szülő
commit
9937aaf72e
1 módosított fájl, 11 hozzáadás és 1 törlés
  1. 11 1
      README.md

+ 11 - 1
README.md

@@ -29,12 +29,22 @@ docker run -d \
   aptacode/rackpeek:latest
   aptacode/rackpeek:latest
 
 
 # Bind mount
 # Bind mount
+mkdir -p config
+sudo chown 1654:1654 config
 docker run -d \
 docker run -d \
   --name rackpeek \
   --name rackpeek \
   -p 8080:8080 \
   -p 8080:8080 \
-  -v $(pwd)/config:/app/config \
+  -v $(pwd)/config:/app/config:Z \
   aptacode/rackpeek:latest
   aptacode/rackpeek:latest
 
 
+# RackPeek runs as UID/GID 1654:1654 inside the container, so a bind-mounted
+# host directory must be writable by that user. The :Z suffix is needed on
+# SELinux-enabled systems such as Fedora, RHEL, and CentOS; it can be omitted
+# on systems without SELinux.
+
+# To verify the container user:
+docker exec rackpeek id
+
 # Note - RackPeek stores its state in YAML
 # Note - RackPeek stores its state in YAML
 config/
 config/
 └── config.yaml
 └── config.yaml