kaniko: kaniko cant push to quay ent on prem

Actual behavior Kaniko cant push to quay

Expected behavior kaniko able to push to quay To Reproduce Steps to reproduce the behavior: as gitlab runner

Additional Information

  • Dockerfile FROM centos:7 curl -O http://somewhere/internalcacerts.rpm && rpm -ivh internalcacerts.rpm && rm -rf internalcacerts.rpm

  • Build Context Please provide or clearly describe any files needed to build the Dockerfile (ADD/COPY commands)

  • Kaniko Image (fully qualified with digest) gcr.io/kaniko-project/executor:debug Digest: sha256:24c1995868cff80f67a682449c5fe61f2016f6f6c7bbbdd908b4f8b28648fe75

INFO[0014] Taking snapshot of full filesystem...        
2018/10/17 13:27:37 pushed blob sha256:b8d3e972c2e2a5ce50d644aac7c6c6a9ea301e9992ea4678a89cf49ab29a4c22
2018/10/17 13:27:39 pushed blob sha256:bfde11b989fdb1e010026dc77bbd13641c7f654a3183855d927f198d2bcc0dd9
2018/10/17 13:27:43 pushed blob sha256:aeb7866da422acc7e93dcf7323f38d7646f6269af33bcdb6647f2094fc4b3bf7
error pushing image: failed to push to destination privatequay/kaniko/testimage:latest: MANIFEST_INVALID: "manifest invalid"
ERROR: Job failed: command terminated with exit code 1

Looks like its related to: https://github.com/bazelbuild/rules_docker/issues/102

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 16 (6 by maintainers)

Most upvoted comments

The detailed error is a bit different though 👼

docker run -it -v /home/vincent/.docker/config.json:/root/.docker/config.json:ro -v /home/vincent/src/github.com/vdemeester/break-all-the-thing/foo/:/workspace/foo -e DOCKER_CONFIG=/root/.docker gcr.io/kaniko-project/executor:debug --cont
ext=/workspace/foo --dockerfile=/workspace/foo/Dockerfile --destination=quay.io/rhdevelopers/small-kaniko:0.0.1
INFO[0000] Downloading base image golang:alpine
INFO[0002] Error while retrieving image from cache: getting file info: stat /cache/sha256:d0b6fa6923af1fa27cd324325de44261e7bb801d5bba39cbbf3589ffe5a59293: no such file or directory
INFO[0002] Downloading base image golang:alpine
INFO[0003] Unpacking rootfs as cmd RUN go install -v ./... requires it.
INFO[0260] Taking snapshot of full filesystem...
INFO[0261] RUN go install -v ./...
INFO[0261] cmd: /bin/sh
INFO[0261] args: [-c go install -v ./...]
go: warning: "./..." matched no packages
INFO[0262] Taking snapshot of full filesystem...
INFO[0262] Adding whiteout for /root/.cache/go-build/5e/5eddca62332aaa6cb767cf6e8b4ce6b00d97ee63b3f549ac9586becdaea0f26c-d
INFO[0262] Adding whiteout for /root/.cache/go-build/e0/e0d9637a42516f6aa3defff56cc9a4d3deaf96b2ade546448835c41bd63d82bc-a
INFO[0262] Adding whiteout for /root/.cache/go-build/98/9816bb371bccde8cb7bf5a44febdb32bbc327a0a5c2e940d9b8b3a402f62e4f0-d
INFO[0262] Adding whiteout for /root/.cache/go-build/77/77a522d1008cfd60284c5bd5cc6fc283abe7ef012d61d06d0fd6b1ff03becc68-a
INFO[0262] Adding whiteout for /root/.cache/go-build/b5/b5cb5076dbba489139e99e802f57979f0f7f4f96806267201ca4e383513a312b-a
INFO[0262] Adding whiteout for /root/.cache/go-build/e3/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-d
INFO[0262] Adding whiteout for /root/.cache/go-build/c4/c483d510e0608431902a9e3aa9e162e4b88f745b790a07a1a4b45f22ef9013f4-a
INFO[0262] Adding whiteout for /root/.cache/go-build/31/311571a11a5934d4f63ba6daaa1b0a1e578ee13a1a373547131af1d9d157dbb4-d
error pushing image: failed to push to destination quay.io/rhdevelopers/small-kaniko:0.0.1: INVALID_REQUEST: "Invalid request"