buildah icon indicating copy to clipboard operation
buildah copied to clipboard

Containerfile with RUN --network none ... Does not work.

Open rhatdan opened this issue 1 year ago • 4 comments

Dockerfile is documented to support

RUN --network ...

But with Buildah this blows up:

STEP 1/2: FROM alpine STEP 2/2: RUN --network=none ping -c 1 4.2.2.2 error building at STEP "RUN --network=none ping -c 1 4.2.2.2": RUN only supports the --mount flag

https://docs.docker.com/engine/reference/builder/#run---network

rhatdan avatar Sep 11 '22 12:09 rhatdan

@flouthoc PTAL

rhatdan avatar Sep 11 '22 12:09 rhatdan

Sure, SGTM I think a small change in imagebuilder should make it work.

flouthoc avatar Sep 12 '22 08:09 flouthoc

A friendly reminder that this issue had no activity for 30 days.

github-actions[bot] avatar Oct 13 '22 00:10 github-actions[bot]

I'm taking over https://github.com/openshift/imagebuilder/pull/237 and will implement this there.

flouthoc avatar Oct 13 '22 04:10 flouthoc