Pushing image docker-registry.default.svc:5000/xxxxx/xxx:latest ...
Pushed 6/9 layers, 67% complete
Pushed 7/10 layers, 78% complete
Pushed 8/9 layers, 89% complete
Registry server Address:
Registry server User Name: serviceaccount
Registry server Email: serviceaccount@example.org
Registry server Password: <<non-empty>>
error: build error: Failed to push image: received unexpected HTTP status: 500 Internal Server Error
....
time="2019-07-24T09:44:04.766206734Z" level=error msg="response completed with error" err.code=UNKNOWN err.detail="filesystem: mkdir /registry/docker/registry/v2/repositories/xxxxx: permission denied" err.message="unknown error" go.version=go1.12.7 http.request.host="172.30.91.235:5000" .... http.response.status=500 ....
....
docker exec -it -u root k8s_registry_docker-registry-1-h7vln_default_734aa8f3-1fb7-11e9-bb46-a02bb81f82fc_0 bash
chown -R 1001:1001 /registry/