Skip to content

fix(build): remove --link from COPY to restore Podman/Buildah compatibility - #63085

Closed
kyssta-exe wants to merge 1 commit into
NousResearch:mainfrom
kyssta-exe:auto-fix/62849-dockerfile-podman-compat
Closed

fix(build): remove --link from COPY to restore Podman/Buildah compatibility#63085
kyssta-exe wants to merge 1 commit into
NousResearch:mainfrom
kyssta-exe:auto-fix/62849-dockerfile-podman-compat

Conversation

@kyssta-exe

Copy link
Copy Markdown
Contributor

Fixes #62849

Buildah (used by Podman) does not support the --link flag in COPY
instructions. Remove --link while keeping --chmod, which Buildah
does support, to maintain the permission-baking optimization.

…bility

Buildah (used by Podman) does not support the --link flag in COPY
instructions. Remove --link while keeping --chmod, which Buildah
does support, to maintain the permission-baking optimization.

Fixes NousResearch#62849
@alt-glitch alt-glitch added type/bug Something isn't working area/docker Docker image, Compose, packaging P2 Medium — degraded but workaround exists sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades duplicate This issue or pull request already exists labels Jul 12, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

Duplicate of #62906 (earlier open fix for #62849). Same minimal change — drop the BuildKit-only --link flag from the source COPY while keeping --chmod=a+rX,go-w — and the same 2-file diff (Dockerfile + the immutable-install test assertion). #62906 was opened first (2026-07-11); this one (2026-07-12) is a later resubmission. Note: neither PR addresses the second half of #62849 (Buildah also rejecting --chmod=a+rX,go-w).

@kyssta-exe

Copy link
Copy Markdown
Contributor Author

Closing as duplicate — marked with duplicate label. The earlier canonical PR addresses the same Docker COPY --link fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docker Docker image, Compose, packaging duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Dockerfile fails to build on podman/buildah due to unsupported flag

2 participants