Closed gvasquez95 closed 6 years ago
Is this still an issue with the latest version?
Add ecr:BatchCheckLayerAvailability to the AWS permissions. It is required to enable push operations.
I'M STILL LOOKING FOR THE SOLUTION , I'M USING AZURE ACR SERVICE
asad@linux:~/docker/asp.net/ASP-.NET-Core-Template$ az acr login --name myACRaccount
Uppercase characters are detected in the registry name. When using its server url in docker commands, to avoid authentication errors, use all lowercase. Login Succeeded
asad@linux:~/docker/asp.net/ASP-.NET-Core-Template$ docker push myregistry.azurecr.io/asadzoot/asp.netcoreimage Using default tag: latest
The push refers to repository [myregistry.azurecr.io/asadzoot/asp.netcoreimage] b370636613f1: Preparing 6c77a46d2383: Preparing 49c07c30337e: Preparing 927533446f60: Preparing 2f4f353cfbf4: Preparing 09fb0ecd67d7: Waiting d000633a5681: Waiting error parsing HTTP 403 response body: unexpected end of JSON input: ""
Description
While building and pushing a project image from Jenkins to AWS ECR the Maven plugin interrupted it's execution with an HTTP 403 message.
Seems like it already uploaded some docker layer parts, as it has both requested the needed AWS IAM permissions and, it's showing in the log stats like the following ones:
How to reproduce
I've already added 4 different AWS policy permissions to allow the different needed ECR (docker) interactions:
What do you expect
How can I actually know which HTTP returned 403 to the plugin?
What happened instead
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:push (default-cli) on project ms-mailer: Exception caught: error parsing HTTP 403 response body: unexpected end of JSON input: "" -> [Help 1]
Software:
Full backtrace