testcontainers - 用于测试容器的通用测试容器抛出 409 说容器未运行
问题描述
这是我的代码片段
override val container = GenericContainer("memsql/cluster-in-a-box:latest")
container.start()
container.underlyingUnsafeContainer.setWaitStrategy(Wait.forHealthcheck())
container.underlyingUnsafeContainer.start()
container.underlyingUnsafeContainer.execInContainer("ls", "-al", "/") //throw 409 here
container.stop()
我在控制台中看到说容器已经启动。不知道为什么我会得到 409。
控制台日志:Container memsql/cluster-in-a-box:latest started in PT0.406374S
解决方案
推荐阅读
- sql - 如何删除Oracle中的重复项?
- python - 可以同时写入文件并在不同的程序中读取它吗
- amazon-web-services - 使用 Cloudformation 将网页连接到 rds
- python - SQLAlchemy db.create_all() 错误,未创建数据库
- r - 在线性回归中标记分类变量
- c - 如何使用函数 write 打印 wchar_t
- javascript - 访问对象内部的数组
- javascript - 注销时 Heroku 节点应用程序错误“没有这样的文件或目录”
- mysql - MYSQL 数据库中用于保修的交通灯系统
- angular - 使用“useHash:true”会破坏新页面中 Angular 路由的打开