Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use numeric user and group in chown #94

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

travisaustin
Copy link
Contributor

When building multi-architecture images with buildx, named user identifiers cannot be supplied to --chown if --link is used. This commit changes the COPY --link --chown=.... lines to use the numeric user id instead of the named user. Instead of calling COPY --link --chown=octane:octane, it will call COPY --link --chown=1000:1000. This change will allow builds to succeed even when using buildx.

See:
docker/buildx#1526
docker/docs#20660
docker/buildx#1526 (comment)

When building multi-architecture images with buildx, named user identifiers cannot be supplied to --chown if --link is used. This commit changes the `COPY --link --chown=....` lines to use the numeric user id instead of the named user. Instead of calling `COPY --link --chown=octane:octane`, it will call `COPY --link --chown=1000:1000`. This change will allow builds to succeed even when using buildx.

See:
docker/buildx#1526
docker/docs#20660
docker/buildx#1526 (comment)
@smortexa smortexa merged commit c685212 into exaco:main Nov 26, 2024
12 checks passed
@travisaustin travisaustin deleted the use-numeric-user-ids branch November 29, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants