'"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.
> 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.
Solution 1:[1]
I found that removing the line
build:
from the container's block in the docker compose file, resolved the issue for me.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Dharman |
