You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For an image to support running as an arbitrary user, directories and files that may be written to by processes in the image should be owned by the root group and be read/writable by that group.
Add the following to the Dockerfile to set the directory permissions for /var/log/mongodb to allow users in the root group to create files in that directory in the built image:
RUN chgrp 0 /var/log/mongodb &&
chmod g=u /var/log/mongodb
Currently, the directory is created with the following permissions: