Skip to content

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

@samikama

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?

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