-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bind mounts for ResourceReaper/ryuk and ContainerisedDockerCompose on macOS #3159
Conversation
@gesellix you're right - I've just switched to the Edge version on MacOS and also see a failure:
We very nearly removed the extra Until we manage to release a fix the workaround will be to use the Stable, not Edge, version of Docker. I'll test locally and get back to you. |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
@gesellix good catch! I wonder if Docker consider it a regression (given that edge isn't the release version). |
I assume that the change is related to their efforts of improving file system (share) performance. |
Could be, yeah. Although I still don't get why a valid Linux path no longer works |
From https://unix.stackexchange.com/a/1919/115690:
So, the double slash is allowed/tolerated, but not necessarily valid on every *nix platform. It seems to be required as kind of a workaround, to make the socket bind work on Windows. Why can't we have nice things 😬 I don't want to say that the Docker Edge release should be considered like a preview/release candidate. My impression is more like "let's apply the workaround with the leading slash only to the platform where the workaround is required". |
will do 👍 |
Relates to #545 Relates to testcontainers#2998
One check fails, but seems unrelated. Maybe it's enough to retry or do you see the root cause? |
@gesellix retried 👍 |
Coming back to this just now - thanks for this and the additional updates @gesellix. |
Welcome :) |
thanks a lot @bsideup for pointing me to this issue. I wasn't able to find it. |
This change to the Docker Desktop default was just released today in 2.4.0.0, so this issue is no longer just specific to the Edge version: https://docs.docker.com/docker-for-mac/release-notes/ |
This is due to the following Docker issue: testcontainers/testcontainers-java#3159
…ppeared in Docker for Mac v2.4.0.0 testcontainers/testcontainers-java#3159)
…ppeared in Docker for Mac v2.4.0.0 testcontainers/testcontainers-java#3159)
…ppeared in Docker for Mac v2.4.0.0 testcontainers/testcontainers-java#3159)
…ppeared in Docker for Mac v2.4.0.0 testcontainers/testcontainers-java#3159)
… testcontainers 1.14.3 see testcontainers/testcontainers-java#3159
…ppeared in Docker for Mac v2.4.0.0 testcontainers/testcontainers-java#3159)
…ppeared in Docker for Mac v2.4.0.0 testcontainers/testcontainers-java#3159)
…ppeared in Docker for Mac v2.4.0.0 testcontainers/testcontainers-java#3159)
…ppeared in Docker for Mac v2.4.0.0 testcontainers/testcontainers-java#3159) (#505)
…tainers testcontainers/testcontainers-java#3159 Commands: ↪ mvn versions:use-latest-releases ↪ mvn versions:update-properties
…tainers testcontainers/testcontainers-java#3159 Commands: ↪ mvn versions:use-latest-releases ↪ mvn versions:update-properties
…tainers testcontainers/testcontainers-java#3159 Commands: ↪ mvn versions:use-latest-releases ↪ mvn versions:update-properties
…tainers testcontainers/testcontainers-java#3159 Commands: ↪ mvn versions:use-latest-releases ↪ mvn versions:update-properties
…tainers testcontainers/testcontainers-java#3159 Commands: ↪ mvn versions:use-latest-releases ↪ mvn versions:update-properties
…e on macOS (testcontainers#3159) Relates to testcontainers#545 Relates to testcontainers#2998
Ryuk fails with "can't connect to Ryuk" on Docker Desktop for macOS, while everything's fine on Linux. I didn't check Windows, yet.
Removing the leading slash
/
on non-Windows like proposed with this pull request helps. Due to refactorings the leading slash has been there for a while and I don't understand, why there aren't more open issues regarding Ryuk. So, this fix is more a best guess :)I assume that something has changed in recent releases of Docker Desktop for macOS. The diff of Ryuk's container mounts shows the effect with and without leading slash:
Mount source
/run/host-services/docker.proxy.sock
is the same when manually creating a container viadocker run -v /var/run/docker.sock:...
.My setup:
Docker Desktop for Mac 2.3.5.0 (47376) (edge Channel)
Docker Engine 19.03.13-beta2
Relates to #545
Relates to #2998