6e0c243c2e
Lintify code with confidence=1
...
Upstream-commit: 5e941f1ca035bb1ec014c18d277aecaa41deba85
Component: engine
2013-11-18 16:24:11 -08:00
bc13d7f295
fix panic with wrong dockercfg file
...
Upstream-commit: 649605915428e0ee81cf49d15e949d48da20110c
Component: engine
2013-09-30 11:07:32 +00:00
0f5b1c7220
Minor spelling correction of protocoll -> protocol
...
Upstream-commit: a7db1254807307b0ac4d9bb0dc784d12caa54237
Component: engine
2013-09-23 23:14:42 -04:00
e60a2a9f3c
Login against private registry
...
To improve the use of docker with a private registry the login
command is extended with a parameter for the server address.
While implementing i noticed that two problems hindered authentication to a
private registry:
1. the resolve of the authentication did not match during push
because the looked up key was for example localhost:8080 but
the stored one would have been https://localhost:8080
Besides The lookup needs to still work if the https->http fallback
is used
2. During pull of an image no authentication is sent, which
means all repositories are expected to be private.
These points are fixed now. The changes are implemented in
a way to be compatible to existing behavior both in the
API as also with the private registry.
Update:
- login does not require the full url any more, you can login
to the repository prefix:
example:
docker logon localhost:8080
Fixed corner corner cases:
- When login is done during pull and push the registry endpoint is used and
not the central index
- When Remote sends a 401 during pull, it is now correctly delegating to
CmdLogin
- After a Login is done pull and push are using the newly entered login data,
and not the previous ones. This one seems to be also broken in master, too.
- Auth config is now transfered in a parameter instead of the body when
/images/create is called.
Upstream-commit: fcee6056dc50de7698772a3049cdfa1eb0f2416f
Component: engine
2013-09-03 20:45:49 +02:00
a4c8dff47f
load authConfig only when needed and fix useless WARNING
...
Upstream-commit: 18962d0ff33cfa6ba2976aa459c766acfd23c1bf
Component: engine
2013-08-19 11:42:38 +00:00
58b5c00cf9
prevent crash when .dockercfg not readable
...
Upstream-commit: 3c9f9945c949e981a4c09da915ea28356b2c58ae
Component: engine
2013-08-14 10:26:18 +00:00
1c96da0a53
auth with user agent
...
Upstream-commit: 4bd287e107eab1623a0e77aeaecda77fc26e7536
Component: engine
2013-08-02 03:30:45 -04:00
0e6bb26f77
Switch json/payload order
...
Upstream-commit: 394941b6b0a30fecf8ae7b6de5880fa553141f93
Component: engine
2013-07-29 11:30:17 -07:00
e9895c9839
Refactor checksum
...
Upstream-commit: 8ca7b0646e6c4346075656f46847f53c2e868a3d
Component: engine
2013-07-29 11:30:17 -07:00
164f76762a
Copy authConfigs on save so data is not modified
...
SaveConfig sets the Username and Password to an empty string
on save. A copy of the authConfigs need to be made so that the
in memory data is not modified.
Upstream-commit: 9332c00ca562e97045490d3d45d8f805fae30330
Component: engine
2013-07-25 00:35:52 +00:00
f910d92ead
fix tests
...
Upstream-commit: f4b41e1a6c2c5d531451bf2feeb3877e03eb8c1c
Component: engine
2013-07-24 12:28:22 +00:00
001001e211
change dockercfg to json and support multiple auth remote
...
Upstream-commit: 3bae188b8dc51911a44ea1c7b5681f9f07f9d3af
Component: engine
2013-07-23 15:07:18 +00:00
0cf9a0c877
Removed DOCKER_INDEX_URL
...
Upstream-commit: 33d97e81ebc4d25ecc7366aeef625e51aa69478c
Component: engine
2013-07-09 08:10:43 -07:00
057f0a4b6f
Adding support for nicer URLs to support standalone registry (+ some registry code cleaning)
...
Upstream-commit: 66a9d06d9fa7a382c6852cf047e1448e0d3e1782
Component: engine
2013-07-05 12:20:58 -07:00
5063918d95
URL schemes of both Registry and Index are now consistent
...
Upstream-commit: 3175e56ad03cbe0118c0982606c5eba9e34c1b07
Component: engine
2013-06-27 17:55:17 -07:00
32f89c6b42
Merge branch 'master' into fix-auth
...
Upstream-commit: 8f2a80804ce6f3ab77057a25180a27e3b346778b
Component: engine
2013-06-21 09:18:03 +00:00
e55048dc4d
gofmt and test sub directories in makefile
...
Upstream-commit: 5dcab2d361956e75d00d5bee18371395f17a663f
Component: engine
2013-06-19 14:50:58 +00:00
2a4a4027de
update docs, remove config file on 401
...
Upstream-commit: 90f6bdd6e41ec352009ffbd073c1f45983abb74b
Component: engine
2013-06-14 13:38:51 +00:00
83d9b24a84
bump to master
...
Upstream-commit: c906239220c7ba06b8615f001fab2f42fb063aeb
Component: engine
2013-06-05 10:23:45 +00:00
4747c5b99f
linted names
...
Upstream-commit: fd224ee590dc9f003f6507b529a9f47cceb02c44
Component: engine
2013-06-04 18:00:22 +00:00
9c0086fb7d
drop/omit
...
Upstream-commit: 86ada2fa5d00820288df8a59eca3deef83f4aeb6
Component: engine
2013-06-04 13:51:12 +00:00
f6d51d4fe0
added docs and moved to api version 1.2
...
Upstream-commit: 3dd1e4d58c9d676d49f41db450c3d42901526edc
Component: engine
2013-06-03 12:09:16 +00:00
e8420b7464
move auth to the client WIP
...
Upstream-commit: 49e656839fb3d846dc65fec544f2984a9c72a2cf
Component: engine
2013-05-30 15:39:43 +00:00
f9738020b7
Update tests with new cookies for registry
...
Upstream-commit: b76d6120ac66a853d177f7e53318ab1ee75dca92
Component: engine
2013-05-28 17:35:10 -07:00
f90a47c969
Merge pull request #618 from titanous/cleanup
...
Misc. cleanup
Upstream-commit: fef816163cf9713b7943025a8739717c971b269c
Component: engine
2013-05-15 18:05:31 -07:00
78f17c9e49
Remove broken, redundant struct tag
...
Upstream-commit: aa0d40747caa8cd9c5cee56046cac011bc3d1065
Component: engine
2013-05-15 16:02:24 -04:00
76f4659754
Allow index server address to vary during execution
...
Upstream-commit: 2b620efffd53fab63bc7b874c96da0693e604278
Component: engine
2013-05-14 22:00:24 +00:00
7c7dc4a8d7
Find docker index URL in ENV before using default value. Unit tests for docker pull
...
Upstream-commit: fc1d1d871b2f952ce83a6b7cedcdf4a86f0c953b
Component: engine
2013-05-14 22:00:24 +00:00
c1a0fe8c7f
Switching to prod index server
...
Upstream-commit: a372f982c1383a3b4d742ef4f4de1a645cd7434d
Component: engine
2013-05-06 10:57:38 -07:00
54c93226ae
Handled wrong user credentials by re-init the auth file (it was impossible to login after having wrong crendentials)
...
Upstream-commit: 0f68042053ac652de13cd68086d0188ac0ecf9b6
Component: engine
2013-05-06 10:57:03 -07:00
1a3f29f52a
Fixed some login quirks
...
Upstream-commit: 18796d55a66f2f072349c54085516fe038bd8283
Component: engine
2013-05-06 10:57:00 -07:00
d624761cb2
Fixed typo in 'username or email already exists'
...
Upstream-commit: 594827d41640eb6a6a878c29aca87f7a4ce6249c
Component: engine
2013-05-06 10:56:59 -07:00
a0dca19377
Fixed docker login
...
Upstream-commit: 84be35dce10682266b9a35d4156997c84485c769
Component: engine
2013-05-06 10:54:48 -07:00
4217889874
Style changes in auth.Login
...
Upstream-commit: 23953e7d67c83bad8514a262acec5ed20bbbfa94
Component: engine
2013-05-06 10:54:46 -07:00
5d62c79e81
Support for the new registry/index API (wip)
...
Upstream-commit: 2421838b0ac6a496503bc896da0e60d195132576
Component: engine
2013-05-06 10:51:04 -07:00
3421949564
Fix for #307
...
Upstream-commit: 8fed600077d5b8d976adec27dfb822166ca7baa5
Component: engine
2013-04-02 03:00:21 -07:00
c5d25049cd
A few spelling/grammar corrections.
...
Upstream-commit: 13d2b086386196e9f4f03e4a18d508a65f6fc5ff
Component: engine
2013-04-01 12:56:50 -07:00
1ceba2a123
Don't convert []byte to string unnecessarily.
...
Upstream-commit: 15b30881570369564bde3f7d8faf4491b2ebfaab
Component: engine
2013-04-01 11:15:40 -07:00
70d73b8c8b
Don't use a strings.Reader where a bytes.Reader will do.
...
There are several places where a []byte is converted to a string
and then fed into strings.NewReader().
Upstream-commit: 7830cf91663f071315c3d0406bc3de0f8a58c2b6
Component: engine
2013-04-01 11:15:10 -07:00
3e91a54abc
Camelize some snake_case variable names
...
Upstream-commit: a6da7f138c0b260d560c63e234c87db0f5c72bb1
Component: engine
2013-03-28 20:12:23 -04:00
1631f2fd5f
Fix the rootPath for auth
...
Upstream-commit: e726bdcce2606acef136a4d5ba47e367d9e461df
Component: engine
2013-03-22 05:52:13 -07:00
209c0fcc0f
Put back the "official" repo
...
Upstream-commit: fc0eac37e47f220e83eacde51519de092b17e426
Component: engine
2013-03-22 04:37:18 -07:00
977b51bc15
Integrate Auth in runtime and make the config file relative to runtime root
...
Upstream-commit: c72ff318d3fb6ab887af21cf4410e1bc8104663a
Component: engine
2013-03-22 02:19:39 -07:00
38ddc6133f
Handle push/pull of repositories
...
Upstream-commit: 11c4294846b55914ec5c5b475012a2234be9a9ff
Component: engine
2013-03-22 01:25:27 -07:00
a3b5b5979f
change registry address to https from http
...
Upstream-commit: 8be58d3a7f6020fe34281dbe27375005e248f0f5
Component: engine
2013-03-19 16:03:17 -07:00
b985acb966
added better error message
...
Upstream-commit: c4640689affc84c5a975059c5fca27a8b22bd1d0
Component: engine
2013-03-15 15:04:36 -07:00
2eb625d9e0
fixed missing varible, error:
...
Upstream-commit: 27ad71e025538b903a3eac8ac1e4eea654346b4d
Component: engine
2013-03-15 14:48:42 -07:00
a818fa1a95
added more debugging/ error catching
...
Upstream-commit: 0a35db8fd061247b1db20fde92237f02a4e6882c
Component: engine
2013-03-15 14:41:55 -07:00
1adb1f0ecb
Removed the extra newline char from the messages
...
Upstream-commit: 7ec6a311f81289dac6305d5c91be37a97b2499a5
Component: engine
2013-03-14 20:23:45 -07:00
53bd354957
added more message changes
...
Upstream-commit: 9b94d89b066d23d6fbadc10eebd52584e93309e4
Component: engine
2013-03-14 19:43:42 -07:00