Testkontainer gibt Fehler aus: Es konnte keine gültige Docker -Umgebung findenJava

Java-Forum
Anonymous
 Testkontainer gibt Fehler aus: Es konnte keine gültige Docker -Umgebung finden

Post by Anonymous »

Ich versuche, Testcontainer auf meinem M3-Apple-Computer mithilfe der Rancher-Desktop-Anwendung auszuführen, aber es kann keine gültige Docker-Umgebung finden. 1.31.5 < /p>
< /li>
[*] ce: moby < /p>
< /li>
testContainer Version: 1.15.3 122.1.9), VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

[*]Mac os: Sonoma(14.6)

jdk: openjdk version "17.0.14" 2025-01-21
< /li>
< /ul>
JNA -Abhängigkeitsbaum: < /p>

Code: Select all

  [INFO] - io.appform.testcontainer:junit-testcontainer-commons:jar:1.0.6:test
[INFO]    - org.testcontainers:testcontainers:jar:1.15.3:test
[INFO]       +- org.rnorth.visible-assertions:visible-assertions:jar:2.1.2:test
[INFO]       |  - net.java.dev.jna:jna:jar:5.2.0:test
[INFO]       - com.github.docker-java:docker-java-transport-zerodep:jar:3.2.8:test
[INFO]          - (net.java.dev.jna:jna:jar:5.8.0:test - omitted for conflict with 5.2.0)
< /code>
Bereits ausprobierte Lösung:-
Test Container-Testfälle fehlschlagen aufgrund der "keine gültige Docker-Umgebung" < /p>
Fehler:-< /p>
2025-02-25 21:55:47.004 INFO  o.t.d.DockerMachineClientProviderStrategy:58 - docker-machine executable was not found on PATH ([/Users/amrit.anand/.rd/bin, /Users/amrit.anand/.rd/bin, /opt/homebrew/bin, /opt/homebrew/sbin, /usr/local/bin, /System/Cryptexes/App/usr/bin, /usr/bin, /bin, /usr/sbin, /sbin, /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin, /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin, /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin])
2025-02-25 21:55:52.107 ERROR o.t.d.DockerClientProviderStrategy:208 - Could not find a valid Docker environment. Please check configuration. Attempted configurations were:
2025-02-25 21:55:52.108 ERROR o.t.d.DockerClientProviderStrategy:210 -     UnixSocketClientProviderStrategy: failed with exception RuntimeException (java.lang.UnsatisfiedLinkError: /Users/amrit.anand/Library/Caches/JNA/temp/jna9558949929743584872.tmp: dlopen(/Users/amrit.anand/Library/Caches/JNA/temp/jna9558949929743584872.tmp, 0x0001): tried: '/Users/amrit.anand/Library/Caches/JNA/temp/jna9558949929743584872.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/amrit.anand/Library/Caches/JNA/temp/jna9558949929743584872.tmp' (no such file), '/Users/amrit.anand/Library/Caches/JNA/temp/jna9558949929743584872.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e' or 'arm64'))). Root cause UnsatisfiedLinkError (/Users/amrit.anand/Library/Caches/JNA/temp/jna9558949929743584872.tmp: dlopen(/Users/amrit.anand/Library/Caches/JNA/temp/jna9558949929743584872.tmp, 0x0001): tried: '/Users/amrit.anand/Library/Caches/JNA/temp/jna9558949929743584872.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/amrit.anand/Library/Caches/JNA/temp/jna9558949929743584872.tmp' (no such file), '/Users/amrit.anand/Library/Caches/JNA/temp/jna9558949929743584872.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e' or 'arm64')))
2025-02-25 21:55:52.109 ERROR o.t.d.DockerClientProviderStrategy:210 -     UnixSocketClientProviderStrategy: failed with exception RuntimeException (java.lang.NoClassDefFoundError: Could not initialize class com.github.dockerjava.transport.DomainSocket). Root cause ExceptionInInitializerError (Exception java.lang.UnsatisfiedLinkError: /Users/amrit.anand/Library/Caches/JNA/temp/jna9558949929743584872.tmp: dlopen(/Users/amrit.anand/Library/Caches/JNA/temp/jna9558949929743584872.tmp, 0x0001): tried: '/Users/amrit.anand/Library/Caches/JNA/temp/jna9558949929743584872.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/amrit.anand/Library/Caches/JNA/temp/jna9558949929743584872.tmp' (no such file), '/Users/amrit.anand/Library/Caches/JNA/temp/jna9558949929743584872.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e' or 'arm64')) [in thread "ducttape-0"])
2025-02-25 21:55:52.109 ERROR o.t.d.DockerClientProviderStrategy:212 - As no valid configuration was found, execution cannot continue
Wie kann ich das untersuchen?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post