testcontainers/testcontainers-java

Docker Compose support doesn't see local Docker images

Open

#239 创建于 2016年10月27日

在 GitHub 查看
 (6 评论) (0 反应) (0 负责人)Java (1,588 fork)batch import
help wantedresolution/acknowledged

仓库指标

Star
 (7,535 star)
PR 合并指标
 (平均合并 2天 17小时) (30 天内合并 2 个 PR)

描述

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.

贡献者指南