Private
Server IP : 195.201.23.43  /  Your IP : 13.58.214.82
Web Server : Apache
System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64
User : kdecoratie ( 1041)
PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/awscli/examples/ecr/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /lib/python3/dist-packages/awscli/examples/ecr/batch-get-image.rst
**Example 1: To get an image**

The following ``batch-get-image`` example gets an image with the tag ``v1.13.6`` in a repository called
``cluster-autoscaler`` in the default registry for an account. ::

    aws ecr batch-get-image \
        --repository-name cluster-autoscaler \
        --image-ids imageTag=v1.13.6
  
Output::

    {
        "images": [
            {
                "registryId": "012345678910",
                "repositoryName": "cluster-autoscaler",
                "imageId": {
                    "imageDigest": "sha256:4a1c6567c38904384ebc64e35b7eeddd8451110c299e3368d2210066487d97e5",
                    "imageTag": "v1.13.6"
                },
                "imageManifest": "{\n   \"schemaVersion\": 2,\n   \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n   \"config\": {\n      \"mediaType\": \"application/vnd.docker.container.image.v1+json\",\n      \"size\": 2777,\n      \"digest\": \"sha256:6171c7451a50945f8ddd72f7732cc04d7a0d1f48138a426b2e64387fdeb834ed\"\n   },\n   \"layers\": [\n      {\n         \"mediaType\": \"application/vnd.docker.image.rootfs.diff.tar.gzip\",\n         \"size\": 17743696,\n         \"digest\": \"sha256:39fafc05754f195f134ca11ecdb1c9a691ab0848c697fffeb5a85f900caaf6e1\"\n      },\n      {\n         \"mediaType\": \"application/vnd.docker.image.rootfs.diff.tar.gzip\",\n         \"size\": 2565026,\n         \"digest\": \"sha256:8c8a779d3a537b767ae1091fe6e00c2590afd16767aa6096d1b318d75494819f\"\n      },\n      {\n         \"mediaType\": \"application/vnd.docker.image.rootfs.diff.tar.gzip\",\n         \"size\": 28005981,\n         \"digest\": \"sha256:c44ba47496991c9982ee493b47fd25c252caabf2b4ae7dd679c9a27b6a3c8fb7\"\n      },\n      {\n         \"mediaType\": \"application/vnd.docker.image.rootfs.diff.tar.gzip\",\n         \"size\": 775,\n         \"digest\": \"sha256:e2c388b44226544363ca007be7b896bcce1baebea04da23cbd165eac30be650f\"\n      }\n   ]\n}"
            }
        ],
        "failures": []
    }

**Example 2: To get multiple images**

The following ``batch-get-image`` example displays details of all images tagged with ``prod`` and ``team1`` in the specified repository. ::

    aws ecr batch-get-image \
        --repository-name MyRepository \
        --image-ids imageTag=prod imageTag=team1

Output::

    {
        "images": [
            {
                "registryId": "123456789012",
                "repositoryName": "MyRepository",
                "imageId": {
                    "imageDigest": "sha256:123456789012",
                    "imageTag": "prod"
                },
                "imageManifest": "manifestExample1"
            },
            {
                "registryId": "567890121234",
                "repositoryName": "MyRepository",
                "imageId": {
                    "imageDigest": "sha256:123456789012",
                    "imageTag": "team1"
                },
                "imageManifest": "manifestExample2"
            }
        ],
        "failures": []
    }

For more information, see `Images <https://docs.aws.amazon.com/AmazonECR/latest/userguide/images.html>`__ in the *Amazon ECR User Guide*.
Private