master-wiki/03. Resources/Development/Docker.md
aleidk 7f0d3dc825 Update from obsidian -
Affected files:
03. Resources/Development/Docker.md
2024-04-17 20:35:23 -04:00

416 B

Docker

Publish Container Images

To easily create multi-arch containers and publish them to a registry, use this snipped (note you need to be logged in the registry):

Create builder container:

docker buildx create --name mybuilder --use --bootstrap

Build and publish image:

docker buildx build --push \
--platform linux/amd64,linux/arm64 \
--tag ghcr.io/<name-space>/<image>:latest .