Docker Community Forums

Share and learn in the Docker community.

Docker push failing into private registry with msg="error resolving upload: swift: parsing time


(Suniluppara) #1

I have installed docker registry v2.4.1 with SWIFT as backend storage
#docker run -i -t registry:2 -v
/bin/registry github.com/docker/distribution v2.4.1

docker images

REPOSITORY TAG IMAGE ID CREATED SIZE
registry 2 8ff6a4aae657 6 weeks ago 171.5 MB
xxxxxxx.com:5000/pdit-internal/oraclelinux 7u2 df602a268e64 10 weeks ago 276.1 MB

Below is the configuration changes made for SWIFT in /etc/docker-registry.yml
swift:
storage: swift
#storage_path: /scratch/docker
storage_path: /tmp/registry
swift_authurl: https://xxxxx.corp.com/auth/v1.0
swift_container: PDIT_REGISTRY
swift_user: Storage-xxxxxx:xxxxx.Storageadmin
swift_password: xxxxxxxx
#swift_tenant_name: _env:OS_TENANT_NAME
#swift_region_name: _env:OS_REGION_NAME
loglevel: debug

Below is the command used to start docker registry

docker run -d --restart=always --privileged=true --name pdit-registry -p 5000:5000 -v /scratch/docker:/tmp/docker -v /etc/docker-registry.yml:/docker-registry/config/doncifg.yml -e “REGISTRY_STORAGE=swift” -e “REGISTRY_STORAGE_SWIFT_USERNAME=Storage-xxxxx:xxxxxx.Storageadmin” -e “REGISTRY_STORAGE_SWIFT_PASSWORD=xxxxxx” -e “REGISTRY_STORAGE_SWIFT_AUTHURL=https://xxxxxxx.com/auth/v1.0” -e “REGISTRY_STORAGE_SWIFT_CONTAINER=PDIT_REGISTRY” registry:2

docker ps -a

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c405cc5ca55c registry:2 "/bin/registry serve " 18 hours ago Up 16 hours 0.0.0.0:5000->5000/tcp pdit-registry

while pushing image its failing,

docker push xxxxx.com:5000/pdit-internal/oraclelinux:7u2

The push refers to a repository [xxxxxx.com:5000/pdit-internal/oraclelinux]
5f70bf18a086: Pushing 1.024 kB
472062da526a: Retrying in 1 seconds
Received unexpected HTTP status: 500 Internal Server Error

when verified with docker logs below is the error

time=“2016-07-26T06:31:16Z” level=error msg=“error resolving upload: swift: parsing time “Tue, 26 Jul 2016 06:31:03 UTC” as “Mon, 02 Jan 2006 15:04:05 GMT”: cannot parse “UTC” as " GMT”" go.version=go1.6.2

Please sugges


(Suniluppara) #2

Any help on this is appreciated