GoogleContainerTools / kaniko

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

Error while pushing image to docker registry #1792

Open pagarwal-tibco opened 3 years ago

pagarwal-tibco commented 3 years ago

Actual behavior Kaniko executor fails to push docker image to docker registry with following errors,

error pushing image: failed to push to destination <docker-registry>/smgkzu3now3rgfr23anyqyw5pb7qvspl/dhlzytzp5mo6rctmhoxtdjqk6sokzrs5:1634629741400: Put "https://<docker-registry>/v2/smgkzu3now3rgfr23anyqyw5pb7qvspl/dhlzytzp5mo6rctmhoxtdjqk6sokzrs5/blobs/uploads/194ad990-a8e0-44e9-9103-9b6897c6ed85?_state=WPAcDMaVHspFUAyVDrtc4FMnKrTjAMt1SIes6S0dBk97Ik5hbWUiOiJzbWdrenUzbm93M3JnZnIyM2FueXF5dzVwYjdxdnNwbC9kaGx6eXR6cDVtbzZyY3RtaG94dGRqcWs2c29renJzNSIsIlVVSUQiOiIxOTRhZDk5MC1hOGUwLTQ0ZTktOTEwMy05YjY4OTdjNmVkODUiLCJPZmZzZXQiOjE2ODAsIlN0YXJ0ZWRBdCI6IjIwMjEtMTAtMTlUMDc6NTE6NDZaIn0%3D&digest=sha256%3Ad4994d1457fde9ea9816f8a18df540a873dc93e572cca0e9262111b088d6115b": EOF

Expected behavior Docker image should be successfully pushed to docker registry

To Reproduce I am trying to reduce the complexity of Dockerfile. But till then if someone can help with pointers then that would be really helpful.

Description Yes/No
Please check if this a new feature you are proposing
  • - [No]
Please check if the build works in docker but not in kaniko
  • - [Yes]
Please check if this error is seen when you use --cache flag
  • - [ ]
Please check if your dockerfile is a multistage dockerfile
  • - [ ]
macrotex commented 3 years ago

Having a similar issue with 1.7.0 pushing to Google Container Registry. Version 1.6.0 works fine.

ahmedzidan commented 3 years ago

This issue is similar to https://github.com/GoogleContainerTools/kaniko/issues/1209 one thing that is working with me is to change the image to mgit/base:kaniko-executor-debug-stable

neko1437 commented 3 years ago

Having a similar issue with 1.7.0 pushing to Google Container Registry. Version 1.6.0 works fine.

I am also having the exact same issue while pushing to Google Container Registry with v1.7.0

aaron-prindle commented 1 year ago

Can anyone in the thread here confirm if this is still happening to them with the latest version of kaniko - "v1.11.0"?

celorodovalho commented 8 months ago

@aaron-prindle

Still happening on 1.21.1