Pushing Docker Images One by One
To learn how the standard Docker Pull REST API functions in Artifactory 7.21.3, see Pushing Multi-Architecture Docker Images Using Docker Build.
You can push multi-architecture Docker images, using a '
Manifest Lists' file, (officially referred to as the
‘fat manifest file’ by Docker), which references image manifests for platform-specific versions of an image. For more information, click here.
The process of pushing multi-architecture Docker images is similar to the standard Docker Push process, with a few exceptions:
- Each architecture gets a different tag.
- After all of the architectures have been built and pushed, a single ‘
fat manifest file' is created that contains all of the images with the relevant tagging.
- After pushing the
manifest file', the images are published with the given tags.
Pushing Images in Bulk Using the Docker Buildx CLI
From Artifactory 7.21.2 and higher, Artifactory supports the
Docker buildx command, allowing you to create and upload Docker ‘
manifest lists’ to the Docker registry in Artifactory.
buildx allows you to build and push multi-architecture images using a single command instead of having to build and push each of the architecture images separately. For more information, see Working with buildx.
Docker buildx, Artifactory saves each architecture of the image under the following path structure, together with the tag that includes the originally published tag, the image operating system, and the image architecture.
The following example shows the
Docker buildx API usage.
Pushing Multi-Architecture Docker Images Using Docker Build
From Artifactory version 7.21.3 and higher, if you continue to push multi-architecture Docker images using
Docker build, all your pushed images will be duplicated, and the architecture tag will be automatically added to each image.
In the following example, pushing the following images using Docker Build will result in Artifactory automatically duplicating the images and adding the
linux tag to each image.
Image A is pushed during the build.
Artifactory duplicates the image and adds the
Image B is pushed during the build.
Artifactory duplicates the image and adds the '