Open AlexandrMD opened 1 year ago
@AlexandrMD I have the same issue. Do you know which version that works?
@AlexandrMDУ меня такая же проблема. Знаете, какая версия работает?
I tried 1.18.3 and 1.17.5. It doesn't work on both. So far, it has not been possible to solve the problem.
@AlexandrMD which version of docker desktop are you running? I downloaded a recent version of docker desktop and it has Docker v24.0.5 This worked with an older version of docker.
And will there be a revision of testcontainer to work with docker version v24.0.5? I have Docker version v24.0.5
With which version of docker did the error not occur?
Hi, we are facing same issue. Running from jenkins on
Docker version 24.0.5, build ced0996
Containers seem to be started but docker logs print nothing for each container started by testcontainers.
EDIT: Tried also with 1.19.0
Hi, are you trying to connect to a remote docker host? Can yo please provide more context. I'll be glad to help.
Hi, are you trying to connect to a remote docker host? Can yo please provide more context. I'll be glad to help.
The tests are run on the same machine as docker(docker.host=tcp://0.0.0.0:2375). The container, judging by the log, starts. But when requested GET /v1.32/containers/759c26e2242032ccb5d64ce3a770bb114653d470b386aa07d73e3d8139645a08/logs?stdout=true&stderr=true&follow=true&since=0 HTTP/1.1 an error occurs Timed out waiting for log output matching '.Started.' the container stops
If you run the docker command docker --host 10.10.10.51:2375 run -v /var/run/docker.sock:/var/run/docker.sakh RYUK_PORT=8080 -p 8080:8080 testcontainers/ryuk:0.5.0 the container is working correctly
In our case we use it on jenkins (docker in docker). The problem is that containers seems to be running, but is not printing any logs, which causes the exception above.
@AlexandrMD I just noticed docker.host
is set at ~/.testcontainers.properties
. Can you try without that property, please?
I'm experiencing this on our Jenkins as well, but not on my MacBook Pro.
Jenkins
INFO 2024-01-27T07:00:55,514 3579 org.testcontainers.DockerClientFactory [Test worker] Connected to docker:
Server Version: 20.10.15
API Version: 1.41
Operating System: Red Hat Enterprise Linux Server 7.9 (Maipo)
Total Memory: 64264 MB
INFO 2024-01-27T07:00:58,477 6542 <corp repo>/dockerproxy/testcontainers/ryuk:0.6.0 [Test worker] Container <corp repo>/dockerproxy/testcontainers/ryuk:0.6.0 is starting: 517a0ed731cc89833bb5c3c5b487e9fbae384c5cefc7f61f0662e340d3f80fac
DEBUG 2024-01-27T07:01:58,979 67044 <corp repo>/dockerproxy/testcontainers/ryuk:0.6.0 [Test worker] Wait strategy threw an exception org.testcontainers.containers.ContainerLaunchException: Timed out waiting for log output matching '.*Started.*'
MacBook Pro
❯ docker version
Client:
Cloud integration: 1.0.17
Version: 20.10.7
API version: 1.41
Go version: go1.16.4
Git commit: f0df350
Built: Wed Jun 2 11:56:22 2021
OS/Arch: darwin/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.7
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: b0f5bc3
Built: Wed Jun 2 11:54:58 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.6
GitCommit: d71fcd7d8303cbf684402823e425e9dd2e99285d
runc:
Version: 1.0.0-rc95
GitCommit: b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7
docker-init:
Version: 0.19.0
GitCommit: de40ad0
I have the same issue in Gitlab CI, but not on my machine. Anyone figured out a workaround?
Module
Core
Testcontainers version
1.18.3
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host Arch
x86_64
Docker version
What happened?
Good afternoon! An error occurs when starting the Ryuk container. .testcontainers.properties
docker.client.strategy=org.testcontainers.dockerclient.EnvironmentAndSystemPropertyClientProviderStrategy vncrecorder.container.image = testcontainers/vnc-recorder:1.3.0 ryuk.container.privileged = true ryuk.container.image = testcontainers/ryuk:0.5.1 tinyimage.container.image = alpine:3.16 sshd.container.image = testcontainers/sshd:1.1.0 checks.disable = false docker.host=tcp://0.0.0.0:2375
org.testcontainers.containers.ContainerLaunchException: Timed out waiting for log output matching '.Started.' at org.testcontainers.containers.wait.strategy.LogMessageWaitStrategy.waitUntilReady(LogMessageWaitStrategy.java:47) at org.testcontainers.containers.wait.strategy.AbstractWaitStrategy.waitUntilReady(AbstractWaitStrategy.java:52)
Relevant log output
Additional Information
No response