docker-webdav-client
docker-webdav-client copied to clipboard
Failing to create webdrive user
Failing to create "webdrive" as UID 0 being allocated in adduser is already in use causing the cmd to fail.
Lines in files causing issue;
##Dockerfile
Ln#20
# User ID of share owner ENV OWNER=0
##docker-entrypoint.sh
Ln#48 & 49
if [ $OWNER -gt 0 ]; then adduser webdrive -u $OWNER -D -G users
Suggest changing the Dockerfile ENV OWNER=1000
Tested adding --env "OWNER=1000" \ to docker run and resolved /mnt/webdrive ownership issues mention
#16 #12
I do not fully understand as when the UID is 0, the if-statement shouldn't have even executed.