Skip to content

Put Image

ecrpublic_put_image R Documentation

Creates or updates the image manifest and tags that are associated with an image

Description

Creates or updates the image manifest and tags that are associated with an image.

When an image is pushed and all new image layers have been uploaded, the PutImage API is called once to create or update the image manifest and the tags that are associated with the image.

This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

Usage

ecrpublic_put_image(registryId, repositoryName, imageManifest,
  imageManifestMediaType, imageTag, imageDigest)

Arguments

registryId

The Amazon Web Services account ID, or registry alias, that's associated with the public registry that contains the repository where the image is put. If you do not specify a registry, the default public registry is assumed.

repositoryName

[required] The name of the repository where the image is put.

imageManifest

[required] The image manifest that corresponds to the image to be uploaded.

imageManifestMediaType

The media type of the image manifest. If you push an image manifest that doesn't contain the mediaType field, you must specify the imageManifestMediaType in the request.

imageTag

The tag to associate with the image. This parameter is required for images that use the Docker Image Manifest V2 Schema 2 or Open Container Initiative (OCI) formats.

imageDigest

The image digest of the image manifest that corresponds to the image.

Value

A list with the following syntax:

list(
  image = list(
    registryId = "string",
    repositoryName = "string",
    imageId = list(
      imageDigest = "string",
      imageTag = "string"
    ),
    imageManifest = "string",
    imageManifestMediaType = "string"
  )
)

Request syntax

svc$put_image(
  registryId = "string",
  repositoryName = "string",
  imageManifest = "string",
  imageManifestMediaType = "string",
  imageTag = "string",
  imageDigest = "string"
)