Module
Core
Testcontainers version
1.19.1
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host Arch
x86
Docker version
Client: Docker Engine - Community
Version: 24.0.7
API version: 1.43
Go version: go1.20.10
Git commit: afdd53b
Built: Thu Oct 26 09:07:41 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.7
API version: 1.43 (minimum version 1.12)
Go version: go1.20.10
Git commit: 311b9ff
Built: Thu Oct 26 09:07:41 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.26
GitCommit: 3dd1e886e55dd695541fdcd67420c2888645a495
runc:
Version: 1.1.10
GitCommit: v1.1.10-0-g18a0cb0
docker-init:
Version: 0.19.0
GitCommit: de40ad0
What happened?
debugging DOCKER_HOST unix:///var/run/docker.sock is not listening problems is harder than necessary
Relevant log output
DOCKER_HOST unix:///var/run/docker.sock is not listening
Additional Information
relevant code is
|
} catch (Exception e) { |
|
log.warn("DOCKER_HOST {} is not listening", dockerHost); |
|
return false; |
|
} |
which swallows the exception.
attaching a debugger shows that the problem was "[13] permission denied". it was fixed by adding the missing docker group, but from log this was not obvious.
Module
Core
Testcontainers version
1.19.1
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host Arch
x86
Docker version
Client: Docker Engine - Community Version: 24.0.7 API version: 1.43 Go version: go1.20.10 Git commit: afdd53b Built: Thu Oct 26 09:07:41 2023 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 24.0.7 API version: 1.43 (minimum version 1.12) Go version: go1.20.10 Git commit: 311b9ff Built: Thu Oct 26 09:07:41 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.26 GitCommit: 3dd1e886e55dd695541fdcd67420c2888645a495 runc: Version: 1.1.10 GitCommit: v1.1.10-0-g18a0cb0 docker-init: Version: 0.19.0 GitCommit: de40ad0What happened?
debugging
DOCKER_HOST unix:///var/run/docker.sock is not listeningproblems is harder than necessaryRelevant log output
Additional Information
relevant code is
testcontainers-java/core/src/main/java/org/testcontainers/dockerclient/DockerClientProviderStrategy.java
Lines 219 to 222 in dd1427e
which swallows the exception.
attaching a debugger shows that the problem was "[13] permission denied". it was fixed by adding the missing
dockergroup, but from log this was not obvious.