Closed hongkongkiwi closed 1 year ago
I would like to set the internal uid and gid that the adminer user uses. I think this is a useful change.
I want to recommend changing the adminer uid and guid in the entrypoint script these two lines should do the trick:
PUID="${PUID:-100}" PGID="${PGID:-101}" usermod -u $PUID adminer groupmod -g $PGID adminer
And add these to the Dockerfile to set existing defaults so nothing breaks and also we need to install the shadow package so we have usermod:
apk --no-cache add shadow ENV PUID=100 ENV PGID=101
Specifically this is used in my case for when I map docker plugin files.
You can use Docker's --user flag to specify a user of your choice to run the image.
--user
I would like to set the internal uid and gid that the adminer user uses. I think this is a useful change.
I want to recommend changing the adminer uid and guid in the entrypoint script these two lines should do the trick:
And add these to the Dockerfile to set existing defaults so nothing breaks and also we need to install the shadow package so we have usermod:
Specifically this is used in my case for when I map docker plugin files.