Fix Podman rootless permissions and improve setup
- Remove downloads folder creation from Dockerfile to avoid permission conflicts - Remove user directive from docker-compose.yml (incompatible with rootless) - Add :Z flag to volume mount for proper SELinux labeling - Add fix-permissions.sh script for easy Podman setup - Update documentation with correct Podman rootless instructions - Update changelog for v2.0.2 This fixes the "Permission denied" error when downloading files in Podman rootless mode by properly configuring UID mapping. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>main
parent
1fcf32223e
commit
42790c6850
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
# Fix permissions for Podman rootless mode
|
||||
# This script sets the correct ownership for the downloads folder
|
||||
|
||||
set -e
|
||||
|
||||
echo "Fixing permissions for Podman rootless mode..."
|
||||
|
||||
# Create downloads directory if it doesn't exist
|
||||
mkdir -p downloads
|
||||
|
||||
# Set correct ownership using podman unshare
|
||||
# This maps UID 1000 in the container namespace to the correct UID on the host
|
||||
podman unshare chown 1000:1000 downloads
|
||||
podman unshare chmod 755 downloads
|
||||
|
||||
echo "✓ Permissions fixed successfully!"
|
||||
echo "The downloads folder is now owned by UID 100999 on the host,"
|
||||
echo "which maps to UID 1000 (appuser) in the container."
|
||||
echo ""
|
||||
echo "You can now start the container with: podman compose up -d"
|
||||
Loading…
Reference in New Issue