GoogleContainerTools / kaniko

Build Container Images In Kubernetes
Apache License 2.0
14.88k stars 1.44k forks source link

Unable to send image to the quay 3.2 #1177

Open samm-git opened 4 years ago

samm-git commented 4 years ago

Actual behavior

Unable to push build to the latest Quay OSS version which supports OCI manifest.

Getting: `error pushing image: failed to push to destination example.com/someorg/kanikotest:latest: INVALID_REQUEST: "Missing `from` repository argument"`

Expected behavior Push to the quay repo

To Reproduce Steps to reproduce the behavior:

  1. Setup latest quay OSS
  2. Try to push to it

P.S. should also be the case for the quay.io

Additional Information

samm-git commented 4 years ago

JFYI - code which returns this error: https://github.com/quay/quay/blob/master/endpoints/v2/blob.py#L134

samm-git commented 4 years ago

Found URL which returns this error:

"POST /v2/oleksii_samorukov/kanikotest/blobs/uploads/?mount=sha256:bb292c78f105cb568ea5e5303f2b6b5f4052d7956780d58aa7266f0019b79bdb HTTP/1.1\" 400 99 \"-\" \"kaniko/unset\""

It seems to be a mistake, as mount format always require repository name added, see https://github.com/docker/distribution/blob/master/docs/spec/api.md#digest-parameter

tejal29 commented 4 years ago

@samm-git I am not very familiar to Quay OSS Are you experiencing issues pushing to a private registry?