Skip to content

/bin/sh default when using extraContainers: #3465

Open
@BuckinghamIO

Description

@BuckinghamIO

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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions