英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论