Skip to content

Commit

Permalink
Create and push the multi platform with buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
fugerit79 committed Jun 29, 2024
1 parent 4b1a35e commit 221241d
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/main/md/docker/multi-platform-manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ For instance we will target linux/amd64 and linux/arm64 :

`docker push fugeritorg/fj-doc-playground-quarkus:3.1.5-linux-arm64`

2. Create and push the multi platform manifest
2A. Create and push the multi platform manifest

```
docker manifest create \
Expand All @@ -27,4 +27,20 @@ fugeritorg/fj-doc-playground-quarkus:3.1.5 \

`docker manifest push fugeritorg/fj-doc-playground-quarkus:3.1.5`

This quickstart is based on : [https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/](https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/)
This quickstart is based on : [https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/](https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/)

2B. Create and push the multi platform with buildx

Depending on you system, method 2A could not work with message "${your manifest} is a manifest list"

It is possible to use buildx to build a new image from the two created :

```
docker buildx imagetools create -t fugeritorg/quarkus-photobook:v1.0.0-native \
fugeritorg/quarkus-photobook:v1.0.0-arm64native \
fugeritorg/quarkus-photobook:v1.0.0-amd64native
```

This solution was borrowed from :

<https://stackoverflow.com/questions/75521775/buildx-docker-image-claims-to-be-a-manifest-list>

0 comments on commit 221241d

Please sign in to comment.