fix(registry-cache): create cache dirs via StateDirectory #3
Loading…
Reference in a new issue
No description provided.
Delete branch ":fix/registry-cache-statedir"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Both units failed with
226/NAMESPACE:Failed to set up mount namespacing: /var/lib/registry-cache/docker-io: No such file or directory. tmpfiles created the per-cache dirs on the tmpfs root before the/persistbind mount covered/var/lib/registry-cache, soReadWritePathspointed at nothing.Now
StateDirectory=registry-cache/<name>(created by systemd inside the mounted dir at start, writable underProtectSystem=strict) +RequiresMountsFor; tmpfiles rules dropped.Tested live with
systemd-runand the same binary, config and sandbox properties: unit active,/v2/_catalog200, pull-throughlibrary/alpine:3manifest 200, dirregistry-cache:registry-cache 0750under the persisted mount.After merge:
rebuild, then the Talospatch mcstep from #2.🤖 Generated with Claude Code