itzg / docker-mc-backup

Provides a side-car container to backup itzg/minecraft-server world data
https://hub.docker.com/r/itzg/mc-backup
MIT License
334 stars 52 forks source link

Backup folder is created as root #110

Closed watchingdogs closed 2 years ago

watchingdogs commented 2 years ago

Not sure if this is intentional or not, but the backup folder and the contents in it are owned by the root user. Running docker as root is required in my environment. I was wondering if there is a way to change this without having to run separate scripts to change the ownership. This issue doesn't appear with the docker-minecraft-server image.

itzg commented 2 years ago

You could try setting the user for the container with --user on docker run or equivalent in compose.