-
Notifications
You must be signed in to change notification settings - Fork 122
Description
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?