Visitar URL original
Can enroot run docker images that don't contain /bin/sh? · Issue #264 · NVIDIA/enroot · GitHub
Skip to content

Can enroot run docker images that don't contain /bin/sh? #264

Description

@samikama

Hi,
I am trying to run jyxsu6/medagentbench:latest with enroot which doesn't contain a /bin/sh since it executes a java binary inside docker. However, when I try to run the enroot image, I get
enroot-switchroot: failed to execute: /bin/sh: No such file or directory
Which implies that enroot is ignoring the cmd argument or assuming cmd argument need to be run within a shell environment.
What I am running is
enroot start -e JAVA_TOOL_OPTIONS='-XX:+UseSerialGC -Xms256m -Xmx1024m' jyxsu6_medagentbench_latest /usr/bin/java "--class-path" "/app/main.war" '-Dloader.path=main.war!/WEB-INF/classes/,main.war!/WEB-INF/,/app/extra-classes' 'org.springframework.boot.loader.PropertiesLauncher'
which is essentially the exec command of the container. Is there a way to bypass the requirement of /bin/sh and directly execute the binary?

Activity

  1. ThibaultPND commented on Jul 23, 2026

    @ThibaultPND

    Hi, I can't either use image without /bin/sh with enroot. Is this an expected behaviour ?
    Have you find any workarround ?

  2. samikama commented on Jul 24, 2026

    @samikama
    Author

    The solution I found was adding another layer to docker image with a shell then converting to enroot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions