Skip to content

fix(dockerfile): remove --link flag and use engine-agnostic chmod for Podman compat - #63790

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

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

Conversation

@kyssta-exe

Copy link
Copy Markdown
Contributor

Description

The COPY --link --chmod=a+rX,go-w . . flags are Docker BuildKit-specific and break Podman/Buildah:

  • --link is unsupported by Buildah
  • a+rX,go-w chmod syntax causes Error parsing chmod on Buildah

Replace with a plain COPY . . + RUN chmod -R a+rX,go-w . that works on both engines.

Fixes #62849

… Podman compat

The COPY --link --chmod=a+rX,go-w flags are Docker BuildKit-specific and
break Podman/Buildah (both the --link flag and the a+rX,go-w chmod syntax
are unsupported). Replace with a plain COPY + RUN chmod that works on
both engines.

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

Copy link
Copy Markdown
Contributor

This was generated by AI during triage.

Duplicate of #63334 — identical mechanism (remove both --link and --chmod, add a separate RUN chmod -R), which is the more complete Buildah fix. #63334 is earlier and also updates the Dockerfile test assertion (this PR omits it). Note the cluster has a second approach (#62906/#63085) that only drops --link and keeps --chmod, which does not address the --chmod parse error #62849 reports on Buildah.

@kyssta-exe

Copy link
Copy Markdown
Contributor Author

Closing as duplicate — marked with duplicate label. The canonical earlier PR addresses the same Dockerfile 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