错误响应来自守护程序:找不到镜像:localstack/localstack:0.14.0

huangapple go评论91阅读模式
英文:

Error response from daemon: No such image: localstack/localstack:0.14.0

问题

最近我遇到了这个错误:
Error response from daemon: No such image: localstack/localstack:0.14.0
这是在设置gnomock时出现的错误。
我在这一行代码上遇到了错误:

gmock, err = gnomock.Start(preset, gnomock.WithDebugMode(), gnomock.WithUseLocalImagesFirst())

当我在我的机器上运行测试时,测试是通过的,但是当在GitLab的运行器上运行时,就会抛出上述错误。

英文:

Recently I had this error
Error response from daemon: No such image: localstack/localstack:0.14.0
when setting up gnomock.
I was getting the error on this line

gmock, err = gnomock.Start(preset, gnomock.WithDebugMode(), gnomock.WithUseLocalImagesFirst())

The test is passing when I test on my machine, but when ran on gitlab's runners it was throwing the error I mention above.

答案1

得分: 0

解决方案是清除运行程序的缓存。

互联网上对这个错误没有提供太多信息。我的理论是,由于模拟程序在项目的子包中使用(封装在周围),labstack进行了更新,但某种方式没有正确地更新docker镜像。

英文:

The solution was to clear the cache of the runners.

The internet do not say much about this error. My theory is that because the mock was used in a sub package of the project (wrapped around), labstack got an update, and somehow that did not prop the docker images correctly.

huangapple
  • 本文由 发表于 2022年9月12日 17:24:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/73687075.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定