我在机器上运行了简单的testcontainer代码[该代码与sprint-boot项目一起运行]:
GenericContainer genericContainer = new GenericContainer(“ minio / minio”); genericContainer.withExposedPorts(9000);
但是我遇到了以下错误:
线程“ main”中的异常com.github.dockerjava.api.exception.InternalServerErrorException:{“ message”:“ Get https://quay.io/v2/:Forbidden”}
at org.testcontainers.dockerclient.transport.okhttp.OkHttpInvocationBuilder.execute(OkHttpInvocationBuilder.java:279)
at org.testcontainers.dockerclient.transport.okhttp.OkHttpInvocationBuilder.lambda$executeAndStream$1(OkHttpInvocationBuilder.java:295)
at java.base/java.lang.Thread.run(Thread.java:834)
我在本地docker中有minio / minio映像,我想在未连接到Internet的环境中使用testcontainer。 testcontainer是否使用本地docker的图像容器?