How to extend a waypoint-odr Docker image?

I am trying to extend this image Docker Hub but I can’t figure out how to apply any tasks.

Anything I try to run I get the same error ... starting container process caused: exec: "/bin/sh": stat /bin/sh: no such file or directory: unknown

here is an example of minimal Dockerfile

FROM hashicorp/waypoint-odr:latest
RUN pwd

output

Sending build context to Docker daemon  2.048kB
Step 1/2 : FROM hashicorp/waypoint-odr:latest
 ---> 60e7c50c52f0
Step 2/2 : RUN pwd
 ---> Running in 075af9b246f9
failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "/bin/sh": stat /bin/sh: no such file or directory: unknown

I’ve tried this as well RUN /bin/ash -c "pwd" but the result is the same.

Do you have any ideas on how I can approach this issue?

found an awnser here dockerfile - How to extend a Docker image that does not have sh binaries - Stack Overflow

Thanks for following up with what you found. I’ll leave this topic open for a bit in case you have further questions or other things to share later. Thanks!This text will be hidden

This topic was automatically closed after 2 days. New replies are no longer allowed.