[INFO] sourcing makefile.d/issue-225.mk [INFO] sourced makefile.d/issue-225.mk #------------------------------------------------------------------------------- issue-225:teardown % docker image rm my.repo:my.tag Untagged: my.repo:my.tag #------------------------------------------------------------------------------- issue-225:teardown % docker image rm 080565210187.dkr.ecr.us-west-2.amazonaws.com/my.repo:my.tag Untagged: 080565210187.dkr.ecr.us-west-2.amazonaws.com/my.repo:my.tag Untagged: 080565210187.dkr.ecr.us-west-2.amazonaws.com/my.repo@sha256:32aef68c20b6f25d69ecbc2f3f98e28f6f6fdacade75ee879459b61f610583f0 Deleted: sha256:3cd22ae067a37dac141923907a902217c649227e56f3c0bac8e59bca9343997b Deleted: sha256:7bfa69445494dccce8a40a42360b255177d12cced0cc6fea22cca760fc8f078e Deleted: sha256:aa39a58a910f30aed14b7afd5ecfe3bbe980c5a7c88f9fb09c30c00d9ad81e16 Deleted: sha256:f05575b7216874173096f8adda55611d620f3287ef5cbf2fa4a6019bf12923e1 Deleted: sha256:9645849ee84d06f26e41109c35b109be1c8712cede6b2821576b77553ca3743f Deleted: sha256:fc97548f49f3b1b9791093e43490c5e1bd32eba7f7dddfc4d4d3ed88d4077c75 Deleted: sha256:288da2a92ff1d3da138349d7a7a78eca8c45899ebe63074695d3a85fd7f627c9 Deleted: sha256:a7b6aceb203b9d3ee04b0f0d87b5f0b50b9a6711bca616a0f005752bd1d466e4 Deleted: sha256:7cd222c7be709347807bedbffecd9e66afd472289cec2876e7da2cd37270c1c8 #------------------------------------------------------------------------------- issue-225:teardown % aws --profile ntd@ecr --region us-west-2 ecr batch-delete-image --repository-name my.repo --image-ids imageTag=my.tag | jq . { "failures": [], "imageIds": [ { "imageTag": "my.tag", "imageDigest": "sha256:32aef68c20b6f25d69ecbc2f3f98e28f6f6fdacade75ee879459b61f610583f0" } ] } #------------------------------------------------------------------------------- issue-225:teardown % aws --profile ntd@ecr --region us-west-2 ecr delete-repository --repository-name my.repo | jq . An error occurred (RepositoryNotEmptyException) when calling the DeleteRepository operation: The repository with name 'my.repo' in registry with id '080565210187' cannot be deleted because it still contains images WARNING! Your password will be stored unencrypted in /home/ntd/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store (Re)authenticating via docker...Login Succeeded (Re)authenticating via oras...Login Succeeded #------------------------------------------------------------------------------- issue-225:setup % aws --profile ntd@ecr --region us-west-2 ecr create-repository --repository-name my.repo --image-scanning-configuration scanOnPush=true | jq . An error occurred (RepositoryAlreadyExistsException) when calling the CreateRepository operation: The repository with name 'my.repo' already exists in the registry with id '080565210187' #------------------------------------------------------------------------------- issue-225:setup % docker image build --tag my.repo:my.tag . Sending build context to Docker daemon 529.9kB Step 1/8 : FROM alpine:latest ---> e66264b98777 Step 2/8 : RUN mkdir -p /docked ---> Running in 295b0fc7964e Removing intermediate container 295b0fc7964e ---> b421d003c533 Step 3/8 : WORKDIR /docked ---> Running in 8e1d61156669 Removing intermediate container 8e1d61156669 ---> 2d874e92cbef Step 4/8 : RUN apk add --no-cache socat ---> Running in 48c92088c2a2 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz (1/4) Installing ncurses-terminfo-base (6.3_p20220521-r0) (2/4) Installing ncurses-libs (6.3_p20220521-r0) (3/4) Installing readline (8.1.2-r0) (4/4) Installing socat (1.7.4.3-r0) Executing busybox-1.35.0-r13.trigger OK: 7 MiB in 18 packages Removing intermediate container 48c92088c2a2 ---> 21d65b5df949 Step 5/8 : EXPOSE 1234 ---> Running in 41292c653313 Removing intermediate container 41292c653313 ---> 149b32977400 Step 6/8 : EXPOSE 4321 ---> Running in daa0b506c13f Removing intermediate container daa0b506c13f ---> c92cc531c78f Step 7/8 : ENTRYPOINT [ "socat" ] ---> Running in ffea054fe5eb Removing intermediate container ffea054fe5eb ---> 499726d0a396 Step 8/8 : CMD [ "TCP4-LISTEN:1234", "TCP4-LISTEN:4321" ] ---> Running in adc7e92581f6 Removing intermediate container adc7e92581f6 ---> 8677a224ac1e Successfully built 8677a224ac1e Successfully tagged my.repo:my.tag #------------------------------------------------------------------------------- issue-225:setup % docker image tag my.repo:my.tag 080565210187.dkr.ecr.us-west-2.amazonaws.com/my.repo:my.tag #------------------------------------------------------------------------------- issue-225:setup % docker image push 080565210187.dkr.ecr.us-west-2.amazonaws.com/my.repo:my.tag The push refers to repository [080565210187.dkr.ecr.us-west-2.amazonaws.com/my.repo] c233b0bc29c0: Preparing 3c7f208c19f4: Preparing 24302eb7d908: Preparing 24302eb7d908: Layer already exists 3c7f208c19f4: Pushed c233b0bc29c0: Pushed my.tag: digest: sha256:c84f0f11f3cdc4066362dc830e59f9d4b6a422eaaa94c2df1d3e7bfcb0384840 size: 945 # >>> Request HTTP Headers [Digest Reference](https://080565210187.dkr.ecr.us-west-2.amazonaws.com/v2/my.repo/manifests/sha256:32aef68c20b6f25d69ecbc2f3f98e28f6f6fdacade75ee879459b61f610583f0) #------------------------------------------------------------------------------- issue-225:main % curl -sL --user AWS:${AWS_PWD} https://080565210187.dkr.ecr.us-west-2.amazonaws.com/v2/my.repo/manifests/sha256:32aef68c20b6f25d69ecbc2f3f98e28f6f6fdacade75ee879459b61f610583f0 -D- -o /dev/null HTTP/1.1 404 Not Found Content-Type: application/json; charset=utf-8 Docker-Distribution-Api-Version: registry/2.0 Sizes: Date: Thu, 18 Aug 2022 15:36:33 GMT Content-Length: 79 # <<< Response HTTP Headers [Digest Reference](https://080565210187.dkr.ecr.us-west-2.amazonaws.com/v2/my.repo/manifests/sha256:32aef68c20b6f25d69ecbc2f3f98e28f6f6fdacade75ee879459b61f610583f0) #------------------------------------------------------------------------------- issue-225:main % curl -sL --user AWS:${AWS_PWD} https://080565210187.dkr.ecr.us-west-2.amazonaws.com/v2/my.repo/manifests/sha256:32aef68c20b6f25d69ecbc2f3f98e28f6f6fdacade75ee879459b61f610583f0 -I HTTP/1.1 404 Not Found Content-Type: application/json; charset=utf-8 Docker-Distribution-Api-Version: registry/2.0 Sizes: Date: Thu, 18 Aug 2022 15:36:33 GMT Content-Length: 79 # >>> Request HTTP Headers [Tag Reference](https://080565210187.dkr.ecr.us-west-2.amazonaws.com/v2/my.repo/manifests/my.tag) #------------------------------------------------------------------------------- issue-225:main % curl -sL --user AWS:${AWS_PWD} https://080565210187.dkr.ecr.us-west-2.amazonaws.com/v2/my.repo/manifests/my.tag -D- -o/dev/null HTTP/1.1 200 OK Content-Type: application/vnd.docker.distribution.manifest.v2+json Docker-Distribution-Api-Version: registry/2.0 Sizes: Date: Thu, 18 Aug 2022 15:36:34 GMT Content-Length: 945 # <<< Response HTTP Headers [Tag Reference](https://080565210187.dkr.ecr.us-west-2.amazonaws.com/v2/my.repo/manifests/my.tag) #------------------------------------------------------------------------------- issue-225:main % curl -sL --user AWS:${AWS_PWD} https://080565210187.dkr.ecr.us-west-2.amazonaws.com/v2/my.repo/manifests/my.tag -I HTTP/1.1 200 OK Content-Length: 945 Content-Type: application/vnd.docker.distribution.manifest.v2+json Docker-Content-Digest: sha256:c84f0f11f3cdc4066362dc830e59f9d4b6a422eaaa94c2df1d3e7bfcb0384840 Docker-Distribution-Api-Version: registry/2.0 Sizes: Date: Thu, 18 Aug 2022 15:36:34 GMT # Repro #------------------------------------------------------------------------------- issue-225:main % oras pull 080565210187.dkr.ecr.us-west-2.amazonaws.com/my.repo:my.tag Downloading 8677a224ac1e Downloaded empty artifact Pulled 080565210187.dkr.ecr.us-west-2.amazonaws.com/my.repo:my.tag Digest: sha256:c84f0f11f3cdc4066362dc830e59f9d4b6a422eaaa94c2df1d3e7bfcb0384840