David Calavera
981a573eaf
Modify import paths to point to the new engine-api package.
...
Signed-off-by: David Calavera <david.calavera@gmail.com>
2016-01-06 19:48:59 -05:00
Richard Scothern
6a248e115b
Merge pull request #1321 from aibaars/gcs-fix-retry
...
GCS storage driver: fix retry function
2016-01-06 12:00:12 -08:00
Richard Scothern
9f83bfc071
Merge pull request #1321 from aibaars/gcs-fix-retry
...
GCS storage driver: fix retry function
2016-01-06 12:00:12 -08:00
Richard Scothern
e28a924e0c
Merge pull request #1323 from aibaars/gcs-fix-list-empty
...
GCS Storagedriver: fix test failure caused by #1187
2016-01-06 11:18:34 -08:00
Richard Scothern
0acca63b93
Merge pull request #1323 from aibaars/gcs-fix-list-empty
...
GCS Storagedriver: fix test failure caused by #1187
2016-01-06 11:18:34 -08:00
Arthur Baars
5c6fdc710f
GCS Storagedriver: fix test failure caused by #1187
...
Signed-off-by: Arthur Baars <arthur@semmle.com>
2016-01-06 18:36:28 +00:00
Arthur Baars
bb1e9e0a82
GCS Storagedriver: fix test failure caused by #1187
...
Signed-off-by: Arthur Baars <arthur@semmle.com>
2016-01-06 18:36:28 +00:00
Arthur Baars
bf1e41a9f2
GCS driver: fix retry function
...
Signed-off-by: Arthur Baars <arthur@semmle.com>
2016-01-06 17:57:22 +00:00
Arthur Baars
d3d40a8807
GCS driver: fix retry function
...
Signed-off-by: Arthur Baars <arthur@semmle.com>
2016-01-06 17:57:22 +00:00
DJ Enriquez
b49c4fff95
Applying recommended changes
...
- Adding clarification to the “chunksize” definition
- Changing short-hand “/w” to “with”
Signed-off-by: DJ Enriquez <dj.enriquez@infospace.com>
2016-01-05 15:22:35 -08:00
Richard Scothern
94347c8611
Remove tags referencing deleted manifests.
...
When a manifest is deleted by digest, look up the referenced tags in the tag
store and remove all associations.
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2016-01-05 13:47:52 -08:00
Richard Scothern
fea0a7ed49
Remove tags referencing deleted manifests.
...
When a manifest is deleted by digest, look up the referenced tags in the tag
store and remove all associations.
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2016-01-05 13:47:52 -08:00
Phil Estes
062d6cd782
Merge pull request #18889 from aaronlehmann/v1-fallback-pull-all-tags
...
Allow v1 protocol fallback when pulling all tags from a repository unknown to v2 registry
2016-01-05 16:20:04 -05:00
Stephen Day
5529baa918
Merge pull request #1249 from k4leung4/print-error-msg
...
Print error for failed HTTP auth request.
2016-01-05 12:23:05 -08:00
Stephen Day
74d719d83f
Merge pull request #1249 from k4leung4/print-error-msg
...
Print error for failed HTTP auth request.
2016-01-05 12:23:05 -08:00
Stephen Day
f277c660ae
Merge pull request #1316 from dmcgowan/fix-janky-integration-tests
...
Fix broken daemon startup with master
2016-01-04 17:51:51 -08:00
Derek McGowan
8d1c44f148
Fix broken daemon startup with master
...
Since the daemon flag was deprecated and replaced by the daemon subcommand, the run engine should use the subcommand and only the flag for older versions
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2016-01-04 16:32:12 -08:00
Richard Scothern
72432a701a
Show the legacy registry flag only in the daemon arguments
...
Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
2016-01-04 14:52:39 -08:00
Sven Dowideit
a580dae06f
Merge pull request #1310 from thaJeztah/fix-hugo-linting
...
docs: mark manifest as "draft"
2016-01-04 18:44:11 +10:00
Stephen Day
1c6c0c8a2d
Merge pull request #1097 from hopkings2008/master
...
use the scheme and host from x-forward-proto and x-forward-host if the…
2015-12-30 16:35:20 -08:00
Stephen Day
0e73b8a37f
Merge pull request #1097 from hopkings2008/master
...
use the scheme and host from x-forward-proto and x-forward-host if the…
2015-12-30 16:35:20 -08:00
Sebastiaan van Stijn
ef006ca1a1
docs: mark manifest as "draft"
...
Markdown linter produced an error on this page;
running markdownlint
ERROR (registry/spec/manifest-v2-2.md) frontmatter: Unexpected non-whitespace char: # Image Manifest Version 2, Schema 2
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2015-12-30 20:56:02 +01:00
Brian Goff
f2158e3920
Merge pull request #18981 from calavera/stop_using_sockets_package
...
Remove pkg sockets and tlsconfig.
2015-12-29 22:22:11 -05:00
Stephen Day
e4d08a35ca
Merge pull request #1304 from BrianBland/fsDriverRelaxedPermissions
...
Relaxes filesystem driver permissions to 0777 (dirs) and 0666 (files)
2015-12-29 19:06:45 -08:00
Stephen Day
00b983b837
Merge pull request #1304 from BrianBland/fsDriverRelaxedPermissions
...
Relaxes filesystem driver permissions to 0777 (dirs) and 0666 (files)
2015-12-29 19:06:45 -08:00
Stephen Day
e63ad1e3d6
Merge pull request #1306 from stevvooe/from-bytes-algorithm
...
digest: make FromBytes available on digest.Algorithm
2015-12-29 18:59:47 -08:00
Stephen Day
0404e5a622
Merge pull request #1307 from stevvooe/panic-on-unavailable
...
digest: panic on unavailable hash algorithm
2015-12-29 18:47:02 -08:00
Stephen Day
2259d9c09b
Merge pull request #1302 from liusdu/arm64
...
update panicwrap package to fix building error on aarch64 platform
2015-12-29 18:44:36 -08:00
David Calavera
4f4b3d5257
Remove usage of pkg sockets and tlsconfig.
...
- Use the ones provided by docker/go-connections, they are a drop in replacement.
- Remove pkg/sockets from docker.
- Keep pkg/tlsconfig because libnetwork still needs it and there is a
circular dependency issue.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-29 19:27:12 -05:00
Kenny Leung
731befec93
Merge branch 'print-error-msg' of https://github.com/k4leung4/distribution into print-error-msg
...
Changed to use typed error instead of formatted string.
Added tests for new public method.
Signed-off-by: Kenny Leung <kleung@google.com>
2015-12-29 16:26:13 -08:00
Kenny Leung
7ff5042c1e
Merge branch 'print-error-msg' of https://github.com/k4leung4/distribution into print-error-msg
...
Changed to use typed error instead of formatted string.
Added tests for new public method.
Signed-off-by: Kenny Leung <kleung@google.com>
2015-12-29 16:26:13 -08:00
Stephen J Day
95bee1895a
digest: panic on unavailable hash algorithm
...
After running into a few nil pointer errors during development, it is clear
that having this function return nil when a hash is not available is the wrong
approach. Nearly every time, this lack of availability was due to a missing
import statement for the hash. This is always a programming error.
To avoid future confusion, we now appropriately panic when the hash function is
not imported by the application. More dynamic uses of the package should call
Algorithm.Available() before calling Algorithm.Hash() to avoid this panic.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-12-29 15:24:32 -08:00
Stephen J Day
4646282448
digest: make FromBytes available on digest.Algorithm
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-12-29 15:16:56 -08:00
Brian Bland
2394deaedc
Merge pull request #1303 from BrianBland/fixDisabledStorageRedirects
...
Serve blobs when a storage driver supports redirects but are disabled
2015-12-29 13:28:45 -08:00
Brian Bland
05d1abbcb4
Merge pull request #1303 from BrianBland/fixDisabledStorageRedirects
...
Serve blobs when a storage driver supports redirects but are disabled
2015-12-29 13:28:45 -08:00
Kenny Leung
b89c4e8cbf
Print error for failed HTTP auth request.
...
Signed-off-by: Kenny Leung <kleung@google.com>
2015-12-29 11:39:20 -08:00
Kenny Leung
c28278f7a2
Print error for failed HTTP auth request.
...
Signed-off-by: Kenny Leung <kleung@google.com>
2015-12-29 11:39:20 -08:00
Liu Hua
5b550f919f
update panicwrap package to fix building error on aarch64 platform
...
Linux on aarch64 lacks of dup2, uses dup3 instead
Signed-off-by: Liu Hua <sdu.liu@huawei.com>
2015-12-29 19:11:59 +00:00
weiyuan.yl
75abeeca11
Replace 404 to http.StatusNotFound
...
Change-Id: Ia100975cb93c0a6d94ea5542b1c9ce386bc87649
Signed-off-by: weiyuan.yl <weiyuan.yl@alibaba-inc.com>
2015-12-29 12:09:04 +08:00
weiyuan.yl
5dc714b347
Replace 404 to http.StatusNotFound
...
Change-Id: Ia100975cb93c0a6d94ea5542b1c9ce386bc87649
Signed-off-by: weiyuan.yl <weiyuan.yl@alibaba-inc.com>
2015-12-29 12:09:04 +08:00
Brian Bland
165507a622
Relaxes filesystem driver permissions to 0777 (dirs) and 0666 (files)
...
Leaves any further permissions restrictions to the process umask
Signed-off-by: Brian Bland <brian.bland@docker.com>
2015-12-28 15:22:28 -08:00
Brian Bland
f19deba809
Relaxes filesystem driver permissions to 0777 (dirs) and 0666 (files)
...
Leaves any further permissions restrictions to the process umask
Signed-off-by: Brian Bland <brian.bland@docker.com>
2015-12-28 15:22:28 -08:00
Brian Bland
cf4fdc1be0
Serve blobs when a storage driver supports redirects but are disabled
...
Fixes issue where an error was returned instead of serving the blob
Signed-off-by: Brian Bland <brian.bland@docker.com>
2015-12-28 11:08:39 -08:00
Brian Bland
cf487a7911
Serve blobs when a storage driver supports redirects but are disabled
...
Fixes issue where an error was returned instead of serving the blob
Signed-off-by: Brian Bland <brian.bland@docker.com>
2015-12-28 11:08:39 -08:00
yuzou
9c7dc47d80
use the scheme and host from x-forward-proto and x-forward-host if they exits and correct the scheme for Location header during image upload
...
Signed-off-by: yuzou <zouyu7@huawei.com>
2015-12-28 17:28:32 +08:00
yuzou
d724bb1d24
use the scheme and host from x-forward-proto and x-forward-host if they exits and correct the scheme for Location header during image upload
...
Signed-off-by: yuzou <zouyu7@huawei.com>
2015-12-28 17:28:32 +08:00
weiyuan.yl
3e4b554f8d
In HEAD request for missing resource, only 404 NOT FOUND is returned
...
Change-Id: I73caf67b59519e6f4f82f7d78f5d4fd4ad9affcd
Signed-off-by: weiyuan.yl <weiyuan.yl@alibaba-inc.com>
2015-12-28 11:28:42 +08:00
weiyuan.yl
dc6944d91d
In HEAD request for missing resource, only 404 NOT FOUND is returned
...
Change-Id: I73caf67b59519e6f4f82f7d78f5d4fd4ad9affcd
Signed-off-by: weiyuan.yl <weiyuan.yl@alibaba-inc.com>
2015-12-28 11:28:42 +08:00
weiyuan.yl
8c97a853d8
Update OSS client for more details in the error message
...
Change-Id: Ie2aa70dfeb69930ee5eda17d7e744e3f95a8b926
Signed-off-by: weiyuan.yl <weiyuan.yl@alibaba-inc.com>
2015-12-24 21:02:35 +08:00
Aaron Lehmann
693eb14e73
Allow v1 protocol fallback when pulling all tags from a repository unknown to v2 registry
...
This is a followup to #18839 . That PR relaxed the fallback logic so that
if a manifest doesn't exist on v2, or the user is unauthorized to access
it, we try again with the v1 protocol. A similar special case is needed
for "pull all tags" (docker pull -a). If the v2 registry doesn't
recognize the repository, or doesn't allow the user to access it, we
should fall back to v1 and try to pull all tags from the v1 registry.
Conversely, if the v2 registry does allow us to list the tags, there
should be no fallback, even if there are errors pulling those tags.
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-12-23 15:21:43 -08:00