docker-calibre-web
docker-calibre-web copied to clipboard
PGID and PUID doesn't support IDs larger than 256000
Unable to use GID and UID for the docker enviroment variable that is larger than 256000, I am using AD to manage user and groups which created ID numbers larger than that. Bellow is the docker log output when trying to use IDs for PGID and PUID from AD.
calibre-web | 2019-06-04T16:25:35.736876555Z [INFO] Create group calibre with id 1958801111 calibre-web | 2019-06-04T16:25:35.737210141Z addgroup: number 1958801111 is not in 0..256000 range calibre-web | 2019-06-04T16:25:35.738428925Z [INFO] Create user calibre with id 1958801112 calibre-web | 2019-06-04T16:25:35.738915236Z adduser: number 1958801112 is not in 0..256000 range
Thanks for that hint; I'll check it as soon as possible.
+1 this bug also applies when using LDAP on Synology DiskStation, any workaround possible?
Tested inside v1.4.0
Via package shadow
bash-5.0# TUID=666000666
bash-5.0# TGID=999000999
bash-5.0# groupadd -g ${TGID} my_group
bash-5.0# useradd -s /bin/sh -g ${TGID} -u ${TUID} my_user
bash-5.0# id my_user
uid=666000666(my_user) gid=999000999(my_group) groups=999000999(my_group)
bash-5.0#
Via default tools from Alpine busybox
bash-5.0# addgroup -g $TGID my_group2
addgroup: number 999000999 is not in 0..256000 range
So I've to adapt the base image shell scripts to use the shadow
package tools