Stephen Day
7e7b6109dc
Merge pull request #236 from endophage/config
...
Adding docs for full suite of configuration options
2015-03-17 21:12:19 -07:00
Zhang Wei
7d4c1d1e97
print detailed error info for docker pull
...
When docker push get response with unknown HTTP status, docker daemon
print:
"Error: Status XXX trying to push repository XXX: XXX"
But when docker pull meets response with unknown status code, it gives:
"HTTP code: XXX"
This commit helps docker pull print more detailed error info like push
does, so push and pull can behave consistently when error happens.
Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
2015-03-18 11:35:44 +08:00
Stephen Day
1f229923d3
Update Sprint label link from Ready
2015-03-17 18:56:56 -07:00
Arnaud Porterie
606d538448
Merge pull request #11118 from shishir-a412ed/restriction_username_length
...
Docker Tag command: Relax the restriction on namespace (username) length from 30 to 255 characters.
2015-03-17 09:41:12 -07:00
Arnaud Porterie
00889e1519
Merge pull request #11109 from ncdc/pull-by-digest
...
Add support for referring to images by digest
2015-03-17 08:15:45 -07:00
Andy Goldstein
4b813b3847
Add ability to refer to image by name + digest
...
Add ability to refer to an image by repository name and digest using the
format repository@digest. Works for pull, push, run, build, and rmi.
Signed-off-by: Andy Goldstein <agoldste@redhat.com>
2015-03-17 10:10:42 +00:00
Derek McGowan
1d6ccc1b72
Quote registry error strings
...
Currently when registry error strings contain new line characters only the last line is displayed to the client. Quote the string to ensure the client can see the entire body value.
fixes #11346
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2015-03-16 15:32:47 -07:00
Derek McGowan
9879aefa81
Use request factory for registry ping
...
Currently when the registry ping is sent, it creates the request directly from http.NewRequest instead of from the http request factory. The request factory adds useful header information such as user agent which is needed by the registry.
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2015-03-16 14:21:00 -07:00
Stephen Day
ac550484be
Merge pull request #226 from stevvooe/json-canonicalization
...
doc/spec: canonicalized JSON format for distribution APIs
2015-03-16 13:21:39 -07:00
Stephen J Day
e891939ebc
spec: Canonicalized JSON Format for Distribution APIs
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-03-16 13:03:02 -07:00
Shishir Mahajan
dc4e9c6e90
Docker Tag command: Relax the restriction on namespace (username) length from 30 to 255 characters.
...
Signed-off-by: Shishir Mahajan <shishir.mahajan@redhat.com>
2015-03-14 16:45:44 -04:00
Stephen Day
af4f5aa7d2
Merge pull request #261 from jlhawn/url_for_method
...
Refactor Layer interface to return a Handler
2015-03-13 17:27:42 -07:00
Stephen Day
47cf298bd0
Merge pull request #261 from jlhawn/url_for_method
...
Refactor Layer interface to return a Handler
2015-03-13 17:27:42 -07:00
Olivier Gambier
40ec1222a9
Merge pull request #259 from stevvooe/validate-var-prefixes
...
context: validate prefix lookups for WithRequest/WithResponse contexts
2015-03-13 16:54:40 -07:00
Josh Hawn
6d14019368
Refactor Layer interface to return a Handler
...
... Rather than ServeHTTP directly.
Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
2015-03-12 21:59:07 -07:00
Josh Hawn
db5689aa86
Refactor Layer interface to return a Handler
...
... Rather than ServeHTTP directly.
Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
2015-03-12 21:59:07 -07:00
Stephen J Day
77dc35fbd6
Validate prefix lookups for WithRequest/WithResponse contexts
...
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-03-12 19:09:26 -07:00
Stephen Day
b8cbceb179
Merge pull request #258 from jlhawn/url_for_method
...
Insert request method option storage driver URLFor
2015-03-12 17:16:54 -07:00
Stephen Day
37447b3abd
Merge pull request #258 from jlhawn/url_for_method
...
Insert request method option storage driver URLFor
2015-03-12 17:16:54 -07:00
Josh Hawn
fdd6314776
Insert request method option storage driver URLFor
...
Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
2015-03-12 17:06:40 -07:00
Josh Hawn
e062e66ee1
Insert request method option storage driver URLFor
...
Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
2015-03-12 17:06:40 -07:00
Stephen Day
efb24490c7
Merge pull request #256 from ncdc/master
...
Send WWW-Authenticate header for silly auth
2015-03-11 19:01:23 -07:00
Stephen Day
70560cceaf
Merge pull request #256 from ncdc/master
...
Send WWW-Authenticate header for silly auth
2015-03-11 19:01:23 -07:00
Andy Goldstein
4b5af16fdc
Send WWW-Authenticate header for silly auth
...
Signed-off-by: Andy Goldstein <agoldste@redhat.com>
2015-03-11 15:20:15 -04:00
Andy Goldstein
4491e755b8
Send WWW-Authenticate header for silly auth
...
Signed-off-by: Andy Goldstein <agoldste@redhat.com>
2015-03-11 15:20:15 -04:00
Stephen Day
8aacddd095
Merge pull request #244 from endophage/cloudfront_refactor
...
registry/middleware, registry/storage, configuration: refactoring cloudfront + generic middlewares
2015-03-11 12:10:49 -07:00
Stephen Day
10881152ac
Merge pull request #244 from endophage/cloudfront_refactor
...
registry/middleware, registry/storage, configuration: refactoring cloudfront + generic middlewares
2015-03-11 12:10:49 -07:00
David Lawrence
3853e66f4b
don't panic during a request when configuring repository middleware. Return a 500 with an appropriate error
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-03-11 08:59:02 -07:00
David Lawrence
83571e574c
don't panic during a request when configuring repository middleware. Return a 500 with an appropriate error
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-03-11 08:59:02 -07:00
Andy Goldstein
b5a63d75ea
Fix Godoc typos
...
Signed-off-by: Andy Goldstein <agoldste@redhat.com>
2015-03-11 08:56:29 -07:00
Andy Goldstein
5c3f53b70f
Fix Godoc typos
...
Signed-off-by: Andy Goldstein <agoldste@redhat.com>
2015-03-11 08:56:29 -07:00
David Lawrence
c858a4ba89
Final polish to cloudfront and larger middleware refactor
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-03-11 08:56:29 -07:00
David Lawrence
6a72d1aefb
Final polish to cloudfront and larger middleware refactor
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-03-11 08:56:29 -07:00
Andy Goldstein
a20abfbf3c
Middleware!
...
Convert middleware in the config to be a map of type->[]Middleware
Add support for registry & repository middleware.
Some naming updates as well.
Signed-off-by: Andy Goldstein <agoldste@redhat.com>
2015-03-11 08:56:28 -07:00
Andy Goldstein
30bcc17b85
Middleware!
...
Convert middleware in the config to be a map of type->[]Middleware
Add support for registry & repository middleware.
Some naming updates as well.
Signed-off-by: Andy Goldstein <agoldste@redhat.com>
2015-03-11 08:56:28 -07:00
David Lawrence
4acda57e05
Refactoring cloudfactory layer handler into a more generic storage
...
middleware concept.
This also breaks the dependency the storage package had on goamz
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-03-11 08:56:28 -07:00
David Lawrence
952f39edff
Refactoring cloudfactory layer handler into a more generic storage
...
middleware concept.
This also breaks the dependency the storage package had on goamz
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-03-11 08:56:28 -07:00
Stephen Day
0c130dff5b
Merge pull request #255 from xiekeyang/digest-refactoring
...
supplement of digest refactoring
2015-03-10 23:56:00 -07:00
xiekeyang
04f8bfbede
supplement of digest refactoring
2015-03-11 14:13:29 +08:00
Derek McGowan
4ae9583092
Merge pull request #251 from jlhawn/digest_pkg_cleanup
...
digest: Minor refactoring
2015-03-10 19:17:37 -07:00
Derek McGowan
fb81ecb0fa
Merge pull request #251 from jlhawn/digest_pkg_cleanup
...
digest: Minor refactoring
2015-03-10 19:17:37 -07:00
Josh Hawn
3e658d29a6
digest: Minor refactoring
...
Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
2015-03-10 16:44:19 -07:00
Josh Hawn
87959abe8f
digest: Minor refactoring
...
Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
2015-03-10 16:44:19 -07:00
Stephen Day
68f9f26f83
Merge pull request #247 from endophage/coverage
...
minor refactor + tests for app.go just to improve test coverage.
2015-03-10 13:16:27 -07:00
Stephen Day
cbdc3621cf
Merge pull request #247 from endophage/coverage
...
minor refactor + tests for app.go just to improve test coverage.
2015-03-10 13:16:27 -07:00
David Lawrence
490e90d299
adding full suite of configuration options
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-03-10 12:45:36 -07:00
David Lawrence
eccae81c9e
minor refactor + tests for app.go just to improve test coverage.
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-03-09 16:31:30 -07:00
David Lawrence
6dcec265a0
minor refactor + tests for app.go just to improve test coverage.
...
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-03-09 16:31:30 -07:00
Tibor Vass
c5c507bb14
Merge pull request #10423 from dmcgowan/v2-registry-fix-single-names
...
Allow single name component repository names
2015-03-09 15:40:22 -04:00
Stephen Day
ddde6b4363
Merge pull request #242 from ncdc/remove-max-component-length
...
Remove max repository component length restriction
2015-03-06 18:24:05 -08:00