【发布时间】:2022-03-29 22:45:40
【问题描述】:
我正在尝试将 TestContainers-Go 添加到我的项目中。我使用 Github 自述文件中的 glide 和 TestNginxLatestReturn 示例。
在滑翔中我放了
- package: github.com/testcontainers/testcontainers-go
version: v0.0.3
但在运行时我在 IDEA 中收到此错误。
# github.com/testcontainers/testcontainers-go
../../../../../../pkg/mod/github.com/testcontainers/testcontainers-go@v0.0.3/docker.go:326:32: p.client.DaemonHost undefined (type *client.Client has no field or method DaemonHost)
知道我为什么会得到这个以及如何解决它吗?
【问题讨论】:
标签: docker go integration-testing glide-golang testcontainers