Closed ondramastik closed 2 years ago
When I remove this setting from build.sbt
:
containerBuildImage := Some("ghcr.io/graalvm/graalvm-ce:19.3.6")
and I only specify the graalVMNativeImageGraalVersion 19.3.6
, outcome is the same. Plugin downloads image ghcr.io-graalvm-graalvm-ce-native-image:19.3.6
and than fails with the same error
[error] docker: Error response from daemon: invalid mode: /opt/graalvm
When I specify version 19.1.1
like in documentation, it fails with:
[info] Generating new GraalVM native-image image based on ghcr.io/graalvm/graalvm-ce:19.1.1: ghcr.io-graalvm-graalvm-ce-native-image:19.1.1
[info] Sending build context to Docker daemon 2.048kB
[info] Step 1/4 : FROM ghcr.io/graalvm/graalvm-ce:19.1.1
[error] manifest unknown
Looks like the problem is caused by this issue: https://stackoverflow.com/questions/50540721/docker-toolbox-error-response-from-daemon-invalid-mode-root-docker I am not really sure how would I fix the issue
The ${pwd} is going to expand to something like c:\Program Files.... That means the volume mount will get parsed as:
- source: C (or your current drive letter, this gets processed as a named volume rather than a host path)
- target: /Program Files/... or wherever you happen to be running this command from.
- mount options: /root/ which is an "invalid mode" (normal options include things like ro for a read only mount)
Expected behaviour
host/graalvm-native-image:packageBin
generates a native image binaryActual behaviour
host/graalvm-native-image:packageBin
fails withInformation
ghcr.io/graalvm/graalvm-ce:19.3.6
containerBuildImage := Some("my-docker-username/graalvm-ce-native-image:19.1.1")
My build.sbt