Update from obsidian -
Affected files: 03. Resources/Development/Docker.md
This commit is contained in:
parent
eb51c17575
commit
7f0d3dc825
1 changed files with 17 additions and 0 deletions
17
03. Resources/Development/Docker.md
Normal file
17
03. Resources/Development/Docker.md
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
# 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:
|
||||||
|
```bash
|
||||||
|
docker buildx create --name mybuilder --use --bootstrap
|
||||||
|
```
|
||||||
|
|
||||||
|
Build and publish image:
|
||||||
|
```bash
|
||||||
|
docker buildx build --push \
|
||||||
|
--platform linux/amd64,linux/arm64 \
|
||||||
|
--tag ghcr.io/<name-space>/<image>:latest .
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue