Title: docker for mac compatibility · Issue #537 · docker-java/docker-java · GitHub
Open Graph Title: docker for mac compatibility · Issue #537 · docker-java/docker-java
X Title: docker for mac compatibility · Issue #537 · docker-java/docker-java
Description: Hello, I am beta testing docker 4 mac and when I disable docker-machine my test suite fails with java.lang.UnsatisfiedLinkError: Could not find library in classpath, tried: [libjunixsocket-macosx-1.8-x86_64.dylib, libjunixsocket-macosx-1...
Open Graph Description: Hello, I am beta testing docker 4 mac and when I disable docker-machine my test suite fails with java.lang.UnsatisfiedLinkError: Could not find library in classpath, tried: [libjunixsocket-macosx-1...
X Description: Hello, I am beta testing docker 4 mac and when I disable docker-machine my test suite fails with java.lang.UnsatisfiedLinkError: Could not find library in classpath, tried: [libjunixsocket-macosx-1...
Opengraph URL: https://github.com/docker-java/docker-java/issues/537
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"docker for mac compatibility ","articleBody":"Hello, \n\nI am beta testing docker 4 mac and when I disable docker-machine my test suite fails with \n\n```\njava.lang.UnsatisfiedLinkError: Could not find library in classpath, tried: [libjunixsocket-macosx-1.8-x86_64.dylib, libjunixsocket-macosx-1.5-x86_64.dylib]\n at org.newsclub.net.unix.NativeUnixSocket.load(NativeUnixSocket.java:81)\n at org.newsclub.net.unix.NativeUnixSocket.\u003cclinit\u003e(NativeUnixSocket.java:112)\n at org.newsclub.net.unix.AFUNIXSocket.\u003cinit\u003e(AFUNIXSocket.java:36)\n at org.newsclub.net.unix.AFUNIXSocket.newInstance(AFUNIXSocket.java:50)\n at org.testcontainers.shaded.com.github.dockerjava.jaxrs.ApacheUnixSocket.\u003cinit\u003e(ApacheUnixSocket.java:53)\n at org.testcontainers.shaded.com.github.dockerjava.jaxrs.UnixConnectionSocketFactory.createSocket(UnixConnectionSocketFactory.java:65)\n```\n\nThe latest version of test containers (1.0.3 at the time of this writing) uses docker-java 2.2.0 (https://github.com/testcontainers/testcontainers-java/blob/2e227e29eded31c0b2d45a5351cc108994327394/core/pom.xml#L20) so I assume it is safe to say that docker-java 2.2.0 is not compatible with docker 4 mac. (I tried adding the dylib to my classpath and got further errors, also the compiled dylib seems hard to find and it feels very cumbersome to have to add it to the classpath manually). \n\nI want to create a bug report to org.testcontainers asking them to upgrade docker-java to a docker4mac compatible version so I checked out the repository and tried to build master using only docker4mac. \nI first got an error in com.github.dockerjava.client.DockerClientTest which seems to be the integration test. The error was that $HOME/.docker/certs did not exist. After creating that directory, I get the following output :\n\n```\nbeforeTest(com.github.dockerjava.client.DockerClientTest) Time elapsed: 2.359 sec \u003c\u003c\u003c FAILURE!\njavax.ws.rs.ProcessingException: org.apache.http.conn.UnsupportedSchemeException: https protocol is not supported\n at com.github.dockerjava.client.DockerClientTest.beforeTest(DockerClientTest.java:32)\nCaused by: org.apache.http.conn.UnsupportedSchemeException: https protocol is not supported\n at com.github.dockerjava.client.DockerClientTest.beforeTest(DockerClientTest.java:32)\n\n\nResults :\n\nFailed tests:\ncom.github.dockerjava.client.DockerClientTest.beforeTest(com.github.dockerjava.client.DockerClientTest)\n Run 1: DockerClientTest.beforeTest:32-\u003eAbstractDockerClientTest.beforeTest:60 » Processing\n Run 2: PASS\n Run 3: PASS\n Run 4: PASS\n Run 5: PASS\n Run 6: PASS\n Run 7: PASS\n Run 8: PASS\n Run 9: PASS\n Run 10: PASS\n Run 11: PASS\n Run 12: PASS\n Run 13: PASS\n Run 14: PASS\n Run 15: PASS\n Run 16: PASS\n Run 17: PASS\n Run 18: PASS\n Run 19: PASS\n Run 20: PASS\n Run 21: PASS\n Run 22: PASS\n Run 23: PASS\n Run 24: PASS\n Run 25: PASS\n Run 26: PASS\n Run 27: PASS\n Run 28: PASS\n Run 29: PASS\n Run 30: PASS\n Run 31: PASS\n Run 32: PASS\n Run 33: PASS\n Run 34: PASS\n Run 35: PASS\n Run 36: PASS\n Run 37: PASS\n Run 38: PASS\n Run 39: PASS\n Run 40: PASS\n Run 41: PASS\n Run 42: PASS\n Run 43: PASS\n Run 44: PASS\n Run 45: PASS\n Run 46: PASS\n Run 47: PASS\n Run 48: PASS\n Run 49: PASS\n Run 50: PASS\n Run 51: PASS\n Run 52: PASS\n Run 53: PASS\n Run 54: PASS\n Run 55: PASS\n Run 56: PASS\n Run 57: PASS\n Run 58: PASS\n Run 59: PASS\n Run 60: PASS\n Run 61: PASS\n Run 62: PASS\n Run 63: PASS\n Run 64: PASS\n Run 65: PASS\n Run 66: PASS\n Run 67: PASS\n Run 68: PASS\n Run 69: PASS\n Run 70: PASS\n Run 71: PASS\n Run 72: PASS\n Run 73: PASS\n Run 74: PASS\n Run 75: PASS\n Run 76: PASS\n Run 77: PASS\n Run 78: PASS\n Run 79: PASS\n Run 80: PASS\n Run 81: PASS\n Run 82: PASS\n Run 83: PASS\n Run 84: PASS\n Run 85: PASS\n Run 86: PASS\n Run 87: PASS\n Run 88: PASS\n Run 89: PASS\n\n\nTests run: 462, Failures: 1, Errors: 0, Skipped: 458\n```\n\nAnd I am unsure what to conclude, the test failure seems to suggest that the lastest master is not docker4mac compatible either but a single failed test seems surprising ...\n\nCan you help me troubleshoot or maybe you already know if master is compatible with docker4mac ...\n\nThanks for your help\njean\n","author":{"url":"https://github.com/jeantil","@type":"Person","name":"jeantil"},"datePublished":"2016-04-06T11:41:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":160},"url":"https://github.com/537/docker-java/issues/537"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c220c006-2fc4-7ba5-025e-bfd59a64f559 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B268:1D504F:1162D24:164D58C:697471B2 |
| html-safe-nonce | e12717685c276203cdc44e1fcb71836ba79620d84882ef735b5d19735e891df0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjY4OjFENTA0RjoxMTYyRDI0OjE2NEQ1OEM6Njk3NDcxQjIiLCJ2aXNpdG9yX2lkIjoiMTEyMTI5ODE2NzcyNTA2MDM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e144a2811b724aa1b0e72dc15671215053bc3075001c711b71584375e7529fd7 |
| hovercard-subject-tag | issue:146286525 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/docker-java/docker-java/537/issue_layout |
| twitter:image | https://opengraph.githubassets.com/30894cb49cce59379532639befcb90c3234e87f60f32e65f838ce7cce8b241f3/docker-java/docker-java/issues/537 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/30894cb49cce59379532639befcb90c3234e87f60f32e65f838ce7cce8b241f3/docker-java/docker-java/issues/537 |
| og:image:alt | Hello, I am beta testing docker 4 mac and when I disable docker-machine my test suite fails with java.lang.UnsatisfiedLinkError: Could not find library in classpath, tried: [libjunixsocket-macosx-1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jeantil |
| hostname | github.com |
| expected-hostname | github.com |
| None | e0b95d743b7672c9ac0e1032d5f117950182dc164a83434a7db86510e8f0b37c |
| turbo-cache-control | no-preview |
| go-import | github.com/docker-java/docker-java git https://github.com/docker-java/docker-java.git |
| octolytics-dimension-user_id | 7772003 |
| octolytics-dimension-user_login | docker-java |
| octolytics-dimension-repository_id | 20415251 |
| octolytics-dimension-repository_nwo | docker-java/docker-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20415251 |
| octolytics-dimension-repository_network_root_nwo | docker-java/docker-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fe7e2e8de6e57740bca50402351ea656f7a4bf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width