Skip to content

Repair Existing Docker Volume Permissions ​

Before changing permissions, identify the runtime user and mount.

New volumes normally inherit image permissions, but preserved older volumes can retain incompatible ownership. Do not delete a volume to fix permissions. Stop Reader and back up the volume using your existing backup tools first.

Use the exact Name from the mount inspection, for example reader_data. The following uses a temporary Alpine helper container; the first run may need to pull alpine:3.22. Reader uses a minimal runtime image, so do not rely on docker exec ... sh or an in-container chown command.

bash
docker stop leelaa-reader
docker run --rm --user 0:0 \
  --mount type=volume,source=reader_data,target=/repair,volume-nocopy \
  alpine:3.22 sh -c 'ls -ldn /repair && chown -R 10001:10001 /repair && chmod -R u+rwX /repair'
docker start leelaa-reader

Replace reader_data with the confirmed existing volume name. volume-nocopy prevents helper image initialization content from being copied into it. --rm removes only the helper container, preserving the volume. Repair a separate older frontend update volume independently. If the repair command fails, investigate before starting Reader again.

After repair, check logs and readiness.