You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a .testcontainers.properties file in my home directory: docker.host=unix:///var/run/user/1000/docker.sock
The library reads the docker host and strips "unix://" part.
Then it provides the host "/var/run/user/1000/docker.sock" to the docker library.
Though the docker library expects the host to start with "unix://" and throws an error.
It works fine for me in version 0.20.1
When I run the test with the env variable DOCKER_HOST=unix:///var/run/user/1000/docker.sock it works.
It doesn't strip "unix://".
I read this PR that behaviour somewhat changed, but I don't understand what's happening. #1161
Am I doing something wrong?
Relevant log output
=== RUN TestContainers/TestElasticsearch
Testcontainers properties file has been found: /home/user/.testcontainers.properties
main_test.go:37: failed to start container: unable to parse docker host `/var/run/user/1000/docker.sock`, failed to create Docker provider
Additional information
No response
The text was updated successfully, but these errors were encountered:
Testcontainers version
0.21.0
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host arch
x86
Go version
1.20
Docker version
Docker info
What happened?
I have a
.testcontainers.properties
file in my home directory:docker.host=unix:///var/run/user/1000/docker.sock
The library reads the docker host and strips "unix://" part.
Then it provides the host "/var/run/user/1000/docker.sock" to the docker library.
Though the docker library expects the host to start with "unix://" and throws an error.
It works fine for me in version 0.20.1
When I run the test with the env variable
DOCKER_HOST=unix:///var/run/user/1000/docker.sock
it works.It doesn't strip "unix://".
I read this PR that behaviour somewhat changed, but I don't understand what's happening.
#1161
Am I doing something wrong?
Relevant log output
=== RUN TestContainers/TestElasticsearch Testcontainers properties file has been found: /home/user/.testcontainers.properties main_test.go:37: failed to start container: unable to parse docker host `/var/run/user/1000/docker.sock`, failed to create Docker provider
Additional information
No response
The text was updated successfully, but these errors were encountered: