Skip to content

Docker Image: Install module for all users? #12972

@J0F3

Description

@J0F3

Description

Is it by intend that the module is installed only for root in the container image?

Can we add a -Scope AllUsers so the module is accessible also for other users in the container?

Backstory:
We wanted to use this image as base for a custom image which runs with a standard user (instead of root). But because the module is installed under /root/.local/share/powershell/Modules the module can not be loaded by other users. If the module would be installed under /opt/microsoft/powershell/7/Modules by using the -Scope AllUsers parameters is would be also usable when running not as root.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Azure PS TeamDockercustomer-reportedquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions