moby/docs/sources/api
Marco Hennings fcee6056dc 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.
2013-09-03 20:45:49 +02:00
..
docker_remote_api.rst Added NodeJS library 2013-08-31 22:13:15 -04:00
docker_remote_api_v1.0.rst Fixed some typo's and formatting issues in remote api documentation. 2013-08-05 15:55:40 -07:00
docker_remote_api_v1.1.rst Fixed typos 2013-08-12 18:53:06 +01:00
docker_remote_api_v1.2.rst Fixed typos 2013-08-12 18:53:06 +01:00
docker_remote_api_v1.3.rst Fixed typos 2013-08-12 18:53:06 +01:00
docker_remote_api_v1.4.rst Login against private registry 2013-09-03 20:45:49 +02:00
index.rst Merge pull request #853 from kencochrane/registry-api-1.1-fix 2013-06-11 18:34:10 -07:00
index_api.rst Make docs build without warnings or errors. Minor additional cleanup. 2013-07-18 19:04:51 -07:00
MAINTAINERS Add GitHub usernames to MAINTAINERS 2013-08-09 21:16:44 -04:00
README.md Added a readme explaining the role of each API 2013-06-11 10:39:02 -07:00
registry_api.rst seperated the registry and index API's into their own docs 2013-06-07 13:42:52 -04:00
registry_index_spec.rst Added information about Docker's high level tools over LXC. Formatting cleanup. Mailing list cleanup. 2013-08-13 13:45:07 -07:00

This directory holds the authoritative specifications of APIs defined and implemented by Docker. Currently this includes:

  • The remote API by which a docker node can be queried over HTTP
  • The registry API by which a docker node can download and upload container images for storage and sharing
  • The index search API by which a docker node can search the public index for images to download