docker-archive / docker-registry

This is **DEPRECATED**! Please go to https://github.com/docker/distribution
Apache License 2.0
2.88k stars 877 forks source link

docker push fails with 400 trying to push manifest #1000

Closed yagey closed 9 years ago

yagey commented 9 years ago

I'm trying to follow the guide at: https://docs.docker.com/userguide/dockerimages/#building-an-image-from-a-dockerfile

no matter what docker container I build, it fails to upload to docker hub.

docker version: [ec2-user@ip-172-31-1-170 sinatra]$ docker version Client version: 1.6.0 Client API version: 1.18 Go version (client): go1.3.3 Git commit (client): 4749651/1.6.0 OS/Arch (client): linux/amd64 DEBU[0674] Calling GET /version INFO[0674] GET /v1.18/version INFO[0674] +job version() INFO[0674] -job version() = OK (0) Server version: 1.6.0 Server API version: 1.18 Go version (server): go1.3.3 Git commit (server): 4749651/1.6.0 OS/Arch (server): linux/amd64

docker push debug logs (last lines): DEBU[0697] [registry] Calling "HEAD" https://registry-1.docker.io/v2/hack14/sinatra/blobs/sha256:e190868d63f8f8b85b026e53b5724c3c2a4548e1d642953442559cfa5f79b2c9 DEBU[0697] https://registry-1.docker.io/v2/hack14/sinatra/blobs/sha256:e190868d63f8f8b85b026e53b5724c3c2a4548e1d642953442559cfa5f79b2c9 -- HEADERS: map[User-Agent:[docker/1.6.0 go/go1.3.3 kernel/3.14.35-28.38.amzn1.x86_64 os/linux arch/amd64]] DEBU[0697] Using cached token for hack14 DEBU[0697] hostDir: /etc/docker/certs.d/registry-1.docker.io DEBU[0697] Pushing hack14/sinatra:latest to v2 repository e9e06b06e14c: Image already exists INFO[0697] Signed manifest for hack14/sinatra:latest using daemon's key: Z56D:AUKP:RB25:GRBI:W64X:Z2N4:FLV7:CKMJ:VU7K:ODZF:E6HT:PNOK DEBU[0697] [registry] Calling "PUT" https://registry-1.docker.io/v2/hack14/sinatra/manifests/latest DEBU[0697] https://registry-1.docker.io/v2/hack14/sinatra/manifests/latest -- HEADERS: map[User-Agent:[docker/1.6.0 go/go1.3.3 kernel/3.14.35-28.38.amzn1.x86_64 os/linux arch/amd64]] DEBU[0697] Using cached token for hack14 DEBU[0697] hostDir: /etc/docker/certs.d/registry-1.docker.io DEBU[0697] Unexpected response from server: "{\"errors\":[{\"code\":\"DIGEST_INVALID\",\"message\":\"provided digest did not match uploaded content\",\"detail\":\"error unmarshalling public key: JWK EC Public Key ID does not match: Z56D:AUKP:RB25:GRBI:W64X:Z2N4:FLV7:CKMJ:VU7K:ODZF:E6HT:PNOK\"}]}\n" http.Header{"Date":[]string{"Tue, 12 May 2015 02:09:24 GMT"}, "Content-Length":[]string{"238"}, "Content-Type":[]string{"text/plain; charset=utf-8"}, "Strict-Transport-Security":[]string{"max-age=31536000"}, "Docker-Distribution-Api-Version":[]string{"registry/2.0"}} Error pushing to registry: Server error: 400 trying to push hack14/sinatra:latest manifest INFO[0697] -job push(hack14/sinatra) = ERR (1) FATA[0000] Error pushing to registry: Server error: 400 trying to push hack14/sinatra:latest manifest

any ideas please?

yagey commented 9 years ago

yes, I'm logged in to my docker hub repo :)

yagey commented 9 years ago

sorry, wrong github I think.

yagey commented 9 years ago

hopefully this was a better repo to comment on: https://github.com/docker/docker/issues/13143