tianocore / containers

Repository to maintain and manage edk2 containers
Other
22 stars 26 forks source link

Ubuntu-22: Update entrypoint to run as non-root on macOS #93

Closed ghost closed 3 weeks ago

ghost commented 5 months ago

Description

On macOS (and Windows), docker containers run as a more heavyweight VM unlike on Linux. One effect of this is that the code in the entrypoint script will see the UID and GID of the home directory as 0 and try to create a user with UID 0.

Work around this limitation by allowing users to pass in the UID and GID when running the container. Update the Readme.md to suggest using $(id -u) and $(id -g).

Issue #(issue)

Containers Affected

Ubuntu-22