spline icon indicating copy to clipboard operation
spline copied to clipboard

java.lang.UnsatisfiedLinkError: could not load FFI provider com.spotify.docker.client.shaded.jnr.ffi.provider.jffi.Provider When building docker images

Open cerveada opened this issue 3 years ago • 3 comments

Scala 2.12 Java 11 CPU M1 OS Mac OS

mvn install -Ddocker -Ddockerfile.repositoryUrl=my -DskipTests

maven-docker-issue.log

cerveada avatar Nov 29 '22 10:11 cerveada

Currently used docker maven plugin is not maintained anymore if the issue is not fixable possible replacement is: https://github.com/fabric8io/docker-maven-plugin

cerveada avatar Nov 29 '22 12:11 cerveada

we could test it in this repo, but the fix should go to the root-pom repo

wajda avatar Nov 29 '22 13:11 wajda

Workaround assuming current DOCKER_HOST is unix:///Users/abac720/.colima/docker.sock :

brew install socat
socat TCP-LISTEN:2375,range=127.0.0.1/32,reuseaddr,fork unix:///Users/abac720/.colima/docker.sock

# in different tab
export DOCKER_HOST=tcp://127.0.0.1:2375
mvn install -Ddocker -Ddockerfile.repositoryUrl=my -DskipTests

from here https://stackoverflow.com/questions/71300031/docker-image-build-failed-on-mac-m1-chip

cerveada avatar Nov 29 '22 14:11 cerveada

Fixed in AbsaOSS/root-pom#6 and #1166 respectively.

wajda avatar Jul 04 '24 10:07 wajda