Pushing images built with kaniko and GitLab CI/CD fails with connection reset by peer

Tried following the tutorial for building a docker image with kaniko and pushing to registry and after the build is successfull, image push fails with the following error:

error pushing image: failed to push to destination registry.un.org/ola/etips-api:: Post "https://registry.un.org/v2/ola/etips-api/blobs/uploads/": read tcp 10.208.49.75:52696->157.150.185.69:443: read: connection reset by peer

A docker push with the same credentials works. However, docker push is showing "Retrying in X seconds" messages for a few layers. Could be related to this: #15237

Edited by rafagsiqueira