You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding an extra containers for the single user environment the image-puller has a hardcoded command that it trys to execute to feedback if the process has been completed.
command:
- /bin/sh
- -c
- echo "Pulling complete"
A issue arrises where when a extra container may not have bash and this causes an error preventing the startup of a container.
How to reproduce
Add any container that does not have /bin/bash to the singleUser environment, in my experience I was trying to add cloud-sql-proxy.
Expected behaviour
The image should run as expected and not be prevented by a JupyterHub requirement that all extra containers should have bash installed.
Actual behaviour
Error within the image-puller daemon set.
Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unab │
│ le to start container process: exec: "/bin/sh": stat /bin/sh: no such file or directory: unknown
The text was updated successfully, but these errors were encountered:
I had a similar issue: the distroless image has busybox but has nothing in /bin/sh
Worked this around by creating a custom image with the following Dockerfile:
FROM myrepo/image-distroless:latest
RUN /busybox/busybox ln -sf /busybox/busybox /bin/sh
I don't like this solution as it requires an additional custom image (and probably private registry infrastructure) but it works.
Bug description
When adding an extra containers for the single user environment the image-puller has a hardcoded command that it trys to execute to feedback if the process has been completed.
A issue arrises where when a extra container may not have bash and this causes an error preventing the startup of a container.
How to reproduce
Add any container that does not have /bin/bash to the singleUser environment, in my experience I was trying to add cloud-sql-proxy.
Expected behaviour
The image should run as expected and not be prevented by a JupyterHub requirement that all extra containers should have bash installed.
Actual behaviour
Error within the image-puller daemon set.
Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unab │
│ le to start container process: exec: "/bin/sh": stat /bin/sh: no such file or directory: unknown
The text was updated successfully, but these errors were encountered: