Hi, i’ve been using docker on linux for a month without any problem.
I’ve tried today the windows-toolbox version and I keep facing this error when starting a container with a java programm.
starting container process caused “exec: “java”: executable file not found in $PATH”
I’ve seen on stackoverflow that the problem is maybe the default emulated shell, but it’s not working when using /bin/sh -c
Very simple Dockerfile :
ADD build/libs/test.jar /app/test.jar
CMD ["java", "-jar", "/app/test.jar"]
And a docker-compose.yml file
If somebody have an idea, thanks a lots in advance