Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can I use an image that doesn't have /bin/sh?

Aaron Bentley February 27, 2020

I would like to use argoproj/argocli as my docker image for a step.  This image doesn't have /bin/sh, as its only purpose is to run /usr/bin/argo.  Is it possible to just run the image, like docker does if you don't specify an entrypoint?

An example command line is:

docker run -t --rm argoproj/argocli submit --watch https://raw.githubusercontent.com/argoproj/argo/master/examples/hello-world.yaml

 

I tried this:

# This is a sample build configuration for Other.
# Check our guides at https://confluence.atlassian.com/x/5Q4SMw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: argoproj/argocli

pipelines:
default:
- step:
script:
- echo "Everything is awesome!"

 But I got:

failed to create containerd task: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"/bin/sh\": stat /bin/sh: no such file or directory": unknown

Removing the script didn't work either.

2 answers

0 votes
Luke Plausin February 3, 2022

This would be really useful - without being able to specify the entrypoint I cannot use the official Kaniko image in Bitbucket pipelines

0 votes
Oleg Lyakhoven July 16, 2021

Any update here? I have no luck to find how to do it in pipelines.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events