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

Viewed 400

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.

1 Answers

I found that removing the line

build:

from the container's block in the docker compose file, resolved the issue for me.

Related