On M1 mac, cog uses buildx to build docker images. However, if the buildx builder is of type docker-container, it fails at the "attach labels to the image" step.
To reproduce the problem, from the cog-examples/hello-world directory, run:
It seems that the intermediate cog-hello-world image that was built is not found by the docker-container driver in the "Adding labels to image..." step.
On M1 mac, cog uses
buildx
to build docker images. However, if thebuildx
builder is of typedocker-container
, it fails at the "attach labels to the image" step.To reproduce the problem, from the
cog-examples/hello-world
directory, run:(To reset afterwards, run
docker buildx use default
)This results in output:
It seems that the intermediate
cog-hello-world
image that was built is not found by thedocker-container
driver in the "Adding labels to image..." step.