0

我正在运行一个 lima 默认容器,如下所示

limactl start default.yml

如果我运行docker run hello-world,它可以正常工作。我看到这个守护进程连接的 docker 主机是unix\:///Users/user/.lima/docker/sock/docker.sock

所以我配置了Testcontainer属性文件如下

docker.client.strategy=org.testcontainers.dockerclient.EnvironmentAndSystemPropertyClientProviderStrategy
docker.host=unix\:///Users/user/.lima/docker/sock/docker.sock

当我运行 testcontainer 时,它失败并显示以下状态

04:12:12.095 [testcontainers-ryuk] DEBUG org.testcontainers.utility.ResourceReaper - Sending 'label=org.testcontainers%3Dtrue&label=org.testcontainers.sessionId%3Df9821c44-4de0-44d4-89e5-634d050676a1' to Ryuk
04:12:12.101 [testcontainers-ryuk] DEBUG org.testcontainers.utility.ResourceReaper - Didn't receive 'ACK' from Ryuk. Will retry to send filters.
.............
.............```

And fails. 

How to make the Testcontainer to run on new docker environment created by Lima. Am I doing the configuration correctly?
4

0 回答 0