What is a default entry point for docker busybox?

Laslo Pastor:
what is a default entry point for docker busybox?

Mariusz Gomse:
according to https://github.com/docker-library/busybox/blob/3d11ce4d95521ccc2da21ebc4e10ebe161a02f63/stable/uclibc/Dockerfile IMHO there isn’t any default entrypoint however there is default command (sh)

Laslo Pastor:
having that what would be more correct
k run foo --image busybox – /bin/sh -c echo Hello
or
k run foo --image busybox – /bin/sh -c ‘echo Hello’

Mariusz Gomse:

kubectl run -i -t busybox --image=busybox --restart=Never -- echo 'Hello'

Mariusz Gomse:
IMHO this

Mariusz Gomse:
check https://kubernetes.io/docs/reference/kubectl/cheatsheet/#creating-objects and https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#run

Mariusz Gomse:
but from your two I checked and only

k run foo --image busybox -- /bin/sh -c 'echo Hello' 

works

Laslo Pastor:
yes … thnaks … that was my point if we are using – we need to specify /bin/sh -c … becouse we killed the entry point with shell

if we used --command we can just pass echo Hello

Mariusz Gomse:
hmmm but I checked and

kubectl run -i -t busybox --image=busybox --restart=Never -- echo 'Hello'

works - and as you can see I don’t have --command flag here