1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/distribution
Sebastiaan van Stijn 99fc4ca2bd
Include original error when translating distribution errors
Before:

    curl -v -X POST --unix-socket /var/run/docker.sock "http://localhost/images/create?fromImage=library/busybox:lsfkjsdflkjsdf"
    {"message":"manifest for busybox:lsfkjsdflkjsdf not found"}

    curl -v -X POST --unix-socket /var/run/docker.sock "http://localhost/images/create?fromImage=library/nosuchimage:latest"
    {"message":"pull access denied for nosuchimage, repository does not exist or may require 'docker login'"}

After:

    curl -v -X POST --unix-socket /var/run/docker.sock "http://localhost/images/create?fromImage=library/busybox:lsfkjsdflkjsdf"
    {"message":"manifest for busybox:lsfkjsdflkjsdf not found: manifest unknown: manifest unknown"}

    curl -v -X POST --unix-socket /var/run/docker.sock "http://localhost/images/create?fromImage=library/nosuchimage:latest"
    {"message":"pull access denied for nosuchimage, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"}

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-08-03 16:12:44 +02:00
..
fixtures/validate_manifest
metadata
utils
xfer
config.go distribution: fix passing platform struct to puller 2018-06-27 14:59:31 -07:00
errors.go Include original error when translating distribution errors 2018-08-03 16:12:44 +02:00
errors_test.go
oci.go Register OCI image media types 2018-06-28 18:19:15 -07:00
pull.go distribution: fix passing platform struct to puller 2018-06-27 14:59:31 -07:00
pull_v1.go distribution: fix passing platform struct to puller 2018-06-27 14:59:31 -07:00
pull_v2.go distribution: fix passing platform struct to puller 2018-06-27 14:59:31 -07:00
pull_v2_test.go
pull_v2_unix.go distribution: remove custom matcher code 2018-06-27 15:33:07 -07:00
pull_v2_windows.go LCOW: Prefer Windows over Linux in a manifest list 2018-06-28 20:30:41 -07:00
push.go
push_v1.go
push_v2.go
push_v2_test.go
registry.go Register OCI image media types 2018-06-28 18:19:15 -07:00
registry_unit_test.go distribution: fix passing platform struct to puller 2018-06-27 14:59:31 -07:00