Skip to content

cachePath permission denied when using Docker bind mounts #2165

Description

@pstefka

Usage of cachePath in a Blocky docker deployment with bind mount results in:

cannot create temp cache file in /cache, serving without caching error=open /cache/dl-4060565016.tmp: permission denied

While it was not a problem until cachePath was introduced, it seems the underlying problem is that blocky is running as user 100.

There are several solutions to this problem, like (random order):

  1. changing ownership of the cache path to user 100
  2. adding user instruction to the docker run command -u "$(id -u):$(id -g)"
  3. adding user instruction to the docker compose user: "${UID}:${GID}", or user: "1000:1000" # depending on the filesystem permissions
  4. usage of named volumes

IMHO at least a note requiring filesystem permissions handling should be mentioned..

Activity

  1. changed the title [-]cachePath permission denied[/-] [+]cachePath permission denied when using Docker bind mounts[/+] on Jul 13, 2026
  2. 0xERR0R commented on Jul 18, 2026

    @0xERR0R
    Owner

    Did you try to use docker volume? Imho this is a classic problem with docker and persimissions on the hosts file system. Updating documentation is for sure a good idea, will do it

  3. added this to the v0.34.0 milestone on Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    📙 documentationImprovements or additions to documentation

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions