-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Description
Module
Core
Testcontainers version
1.17.5
Using the latest Testcontainers version?
Yes
Host OS
macOS 12.6
Host Arch
Apple M1 Pro
Docker version
Client:
Cloud integration: v1.0.29
Version: 20.10.20
API version: 1.41
Go version: go1.18.7
Git commit: 9fdeb9c
Built: Tue Oct 18 18:20:35 2022
OS/Arch: darwin/arm64
Context: desktop-linux
Experimental: true
Server: Docker Desktop 4.13.0 (89412)
Engine:
Version: 20.10.20
API version: 1.41 (minimum version 1.12)
Go version: go1.18.7
Git commit: 03df974
Built: Tue Oct 18 18:18:16 2022
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.6.8
GitCommit: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
runc:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d
docker-init:
Version: 0.19.0
GitCommit: de40ad0What happened?
I'm setting up a new Apple Macbook for development. I've installed the latest version of Docker for Mac. After that I've tried to run a maven build of a Java application using testcontainers. The build is failing because testcontainers cannot find the docker environment. It's likely a user error from my side but I couldn't figure out what is missing exactly. I'm able to interact with docker from command line.
Any help is appreciated. Thank you.
Relevant log output
INFO org.testcontainers.dockerclient.DockerMachineClientProviderStrategy 2022-10-20T15:49:37.923+0000 [build=hack.dev.0] [main] [requestId=] [messageGroupId=] [/] - docker-machine executable was not found on PATH ([/Users/Martin_Tarjanyi/.jenv/shims, /Users/Martin_Tarjanyi/.jenv/bin, /opt/homebrew/bin, /opt/homebrew/sbin, /usr/local/bin, /usr/bin, /bin, /usr/sbin, /sbin])
ERROR org.testcontainers.dockerclient.DockerClientProviderStrategy 2022-10-20T15:49:37.923+0000 [build=hack.dev.0] [main] [requestId=] [messageGroupId=] [/] - Could not find a valid Docker environment. Please check configuration. Attempted configurations were:
UnixSocketClientProviderStrategy: failed with exception InvalidConfigurationException (Could not find unix domain socket). Root cause NoSuchFileException (/var/run/docker.sock)As no valid configuration was found, execution cannot continue.Additional Information
No response