testcontainers / testcontainers/testcontainers-java

Docker Compose support doesn't see local Docker images

未关闭
#239 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

help wanted resolution/acknowledged
主要语言
Java
星标
8.7k
派生
1.9k
平均合并
2 天 17 小时
30 天内合并 PR
9

描述

I have a project where I've attempted to do the following:

  1. Build an image of the project's application, locally (without pushing into a registry);
  2. Set up an integration test suite that runs after the image has been built;
  3. Have a test case in that suite that uses TestContainer's Compose support to launch a composition that uses the image from step 1.

This however doesn't work, because TestContainers runs Compose inside a container, and it evidently doesn't see the image that's locally built on step 1.

Another symptom of this same problem is that the Compose container, every time it runs, pulls public images afresh from Docker Hub even though they are locally cached on the Docker host.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

该 issue 未指定源文件或测试。首先使用本地构建的镜像和已缓存的 Docker Hub 镜像复现 Compose 支持流程,然后跟踪 Compose 容器的启动方式。当 Compose 可以使用本地主机镜像,并且不会不必要地拉取已经可用的镜像时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
docker, docker-compose, java
领域
devops, testing
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。