Skip to content
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

New version of docker desktop on macos and /var/run/docker.sock #94

Open
cmoulliard opened this issue Nov 20, 2024 · 0 comments
Open

New version of docker desktop on macos and /var/run/docker.sock #94

cmoulliard opened this issue Nov 20, 2024 · 0 comments

Comments

@cmoulliard
Copy link
Member

Issue

With the new version of docker desktop on macos, the sock file located historically under /var/run/docker.sock don't exist anymore and has been replaced by a sock created under ~/Library/Containers/com.docker.docker/Data/docker.raw.sock /var/run/docker.sock

To by pass this issue, create a symbolic link as described here : https://stackoverflow.com/questions/44084846/cannot-connect-to-the-docker-daemon-on-macos

sudo ln -s ~/Library/Containers/com.docker.docker/Data/docker.raw.sock /var/run/docker.sock
ls -la /var/run/docker.sock
lrwxr-xr-x@ 1 root  daemon  73 Nov 20 10:03 /var/run/docker.sock@ -> /Users/cmoullia/Library/Containers/com.docker.docker/Data/docker.raw.sock

And to be sure that the java builder will use it, set the following parameter

            .withNewDockerConfig()
              .withDockerHost("unix:///var/run/docker.sock")
            .endDockerConfig()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant