Closed atamti closed 1 year ago
Resolved - consolidated my users and ran as root inside the container.
Ended up moving to nginx as I use it for other things and wanted to centalize control of my ports, but I did have it working as containerized caddy as well
Description:
I'm attempting to run vaultwarden and caddy in rootless docker. I had it working fine in "rootful" docker, but this gave me issues. I've worked through all of them but a stubborn permissions error, that seems to be driven by a change of directory ownership of the caddy-data volume from "dockeruser" to "nobody" during the volume mounting process. This has really stumpted both me and chatGPT (at least based on what prompts I gave it), so any help would be greatly appreciated. Happy to provide more info if helpful.
Environment:
Docker version: 24.0.4 build 3713ee1 (rootless) Vaultwarden version: 1.29.0 Caddy version: 2.6.4 Operating system: Raspberry Pi OS (Bullseye)
Configuration:
Docker-compose.yml
Note: Anything in [ ] I removed for privacy
Caddy configuration (e.g., Caddyfile)
Steps to reproduce:
Expected behavior:
Docker compose file imports the volumes maintaining current user ownership and permissions (dockeruser, uid=1002)
Actual behavior:
Docker compose file imports the volumes owned by "nobody" with group "nobody" (note -not "nogroup")
Additional information
Attempts made: