简体   繁体   English

“无法解决:rpc 错误:code = Unknown desc = refusing to create a tag with a digest reference”当“docker compose up”时

[英]"failed to solve: rpc error: code = Unknown desc = refusing to create a tag with a digest reference" When "docker compose up"

When I command "docker compose up" after finishing docker compose build, the follow error occured.当我在完成 docker compose 构建后命令“docker compose up”时,发生了以下错误。

> exporting to image:
------
failed to solve: rpc error: code = Unknown desc = refusing to create a tag with a digest reference

I looked at the reason, but I don't understand why this error occurs.我查看了原因,但我不明白为什么会出现这个错误。

I found that removing the line我发现删除该行

build:

from the container's block in the docker compose file, resolved the issue for me.从 docker 撰写文件中的容器块,为我解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:RPC失败; 结果= 52,HTTP代码= 0致命:远端意外挂断 - error: RPC failed; result=52, HTTP code = 0 fatal: The remote end hung up unexpectedly 无法通过docker compose找到Gemfile错误 - Could not locate Gemfile error by docker compose up docker-compose up 的 nokogiri “加载错误”错误 - Errors of nokogiri "Load Error" with docker-compose up 运行 bundle 时出现 docker-compose 错误 - docker-compose error when I run bundle Docker Compose with Rails docker-compose up 失败 - Docker Compose with Rails docker-compose up failure 如何解决 Rails 错误:找不到图像 - ../digest/md5.bundle - How to solve Rails error: Image not found - ../digest/md5.bundle docker-compose rails app在使用时找不到db,但在运行时却没有 - docker-compose rails app doesn't find db when using up but does when doing run Docker-compose 测试 Selenium 失败 / Selenium::WebDriver::Error::UnknownError: unknown error:.net::ERR_CONNECTION_REFUSED - Docker-compose testing with Selenium fails / Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_CONNECTION_REFUSED 如何为生产环境运行docker compose up - How to run docker compose up for production environment 您必须将 Bundler 2 或更高版本与此锁定文件一起使用。 在本地运行 docker-compose up 时 - You must use Bundler 2 or greater with this lockfile. When running docker-compose up locally
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM