Home - Docker

I kind of hate Docker, but mostly because I still don’t understand how it works.

Building multi-architecture images

Needed this because I was building the image on my Mac and trying to run it on Linux. This happened:

Error response from daemon: image with reference jackbaty/roam-notes was found but does not match the specified platform: wanted linux/amd64, actual: linux/arm64/v8.

docker buildx build -t jackbaty/roam-notes \
                    -o type=registry \
                    --platform=linux/arm64/v8,linux/amd64 .

The -o flag causes the output to be pushed right to the registry.

Need to use buildx instead. And that didn’t work until I first ran:

docker buildx create --use

I don’t know what that does.