Skip to content

kube-run x distrolessΒ #7215

@n-bes

Description

@n-bes

Before proceeding

  • I didn't find a similar issue

Version

v2.51.2

How to reproduce

FROM scratch AS image-name
WORKDIR /usr/local/bin/
COPY --from=build /build/app /usr/local/bin/app
$ werf build

β”Œ πŸ›³οΈ  (3/3) image <image-name>
β”‚ Use previously built image for image-name/dockerfile
β”‚      name: localhost:5000/image-name:7e48823cc4d9f475acdf8b9ae94d936ee27c2eb62247f29e13103928-1763123570866
β”‚        id: eaad03f6df85
β”‚   created: 2025-11-14 15:32:50
β”‚      size: 47.8 MiB
β”” πŸ›³οΈ  (3/3) image <image-name> (0.02 seconds)

Result

$ werf kube-run <image-name> --require-built-images -- /usr/local/bin/app version

Creating namespace "<project>" ...
Namespace "<project>" already exists
Running pod "werf-run-2094410998246452538" ...
pod/werf-run-2094410998246452538 created
Waiting for pod to be ready ...
Cleaning up pod "werf-run-2094410998246452538" ...
Error: error waiting for Pod readiness: pod <project>/werf-run-2094410998246452538 failed

Expected result

$ docker run --rm localhost:5000/image-name:7e48823cc4d9f475acdf8b9ae94d936ee27c2eb62247f29e13103928-1763123570866 /usr/local/bin/app version   

v1.2.3.4

Additional information

busybox instead of scratch works fine

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions