[英]"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.