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 Add distribution package 2015-11-24 09:40:24 -08:00
metadata Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
utils Add canonical import comment 2018-02-05 16:51:57 -05:00
xfer Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
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 Various code-cleanup 2018-05-23 17:50:54 +02:00
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 Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
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 Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
push_v1.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
push_v2.go Various code-cleanup 2018-05-23 17:50:54 +02:00
push_v2_test.go Bump docker/distribution to 83389a148052d74ac602f5f1d62f86ff2f3c4aa5 2018-04-30 09:30:56 -07:00
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