Skip to content

docker image to use non-root user #1485

Closed

Description

@rijobro

Is your feature request related to a problem? Please describe.
Our cluster has disabled the user, root. This then means that using MONAI's docker image causes error since it only has one user, root. This problem may also affect other users, where they can't use root for various reasons. For example, I think by default, you can't SSH into a root user.

Describe the solution you'd like
In the Dockerfile, I'd like for a new user to be added (e.g., monai) with sudo privileges and for this to be the default.

Something like (not tested):

RUN adduser --disabled-password --gecos '' monai
USER monai

Activity

  1. added
    enhancement
    on Jan 21, 2021
  2. locked and limited conversation to collaborators on May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions