moby/docs/sources/commandline/command
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
..
images add doc for images -viz 2013-05-03 21:12:43 -07:00
attach.rst Fix #1330 and #1149. Improve CMD, ENTRYPOINT, and attach docs. 2013-08-19 19:13:26 -07:00
build.rst Fix #1517, #1521 by adding sudo to examples and installation. 2013-08-14 16:21:36 -07:00
commit.rst Fix #1517, #1521 by adding sudo to examples and installation. 2013-08-14 16:21:36 -07:00
cp.rst Fix #1684: Old Welcome is now Introduction. Working with Repos now follows Builder. 2013-08-27 14:29:49 -07:00
diff.rst added/modifed tittle, description and keywords 2013-05-22 17:52:48 -07:00
events.rst Add 2 missing cli commands to docs (events + insert) and alphabetically order docker output 2013-09-03 16:35:22 +02:00
export.rst added/modifed tittle, description and keywords 2013-05-22 17:52:48 -07:00
history.rst added/modifed tittle, description and keywords 2013-05-22 17:52:48 -07:00
images.rst Fix #1517, #1521 by adding sudo to examples and installation. 2013-08-14 16:21:36 -07:00
import.rst Fix #1517, #1521 by adding sudo to examples and installation. 2013-08-14 16:21:36 -07:00
info.rst added/modifed tittle, description and keywords 2013-05-22 17:52:48 -07:00
insert.rst Add 2 missing cli commands to docs (events + insert) and alphabetically order docker output 2013-09-03 16:35:22 +02:00
inspect.rst added/modifed tittle, description and keywords 2013-05-22 17:52:48 -07:00
kill.rst added/modifed tittle, description and keywords 2013-05-22 17:52:48 -07:00
login.rst Login against private registry 2013-09-03 20:45:49 +02:00
logs.rst added/modifed tittle, description and keywords 2013-05-22 17:52:48 -07:00
port.rst added/modifed tittle, description and keywords 2013-05-22 17:52:48 -07:00
ps.rst added/modifed tittle, description and keywords 2013-05-22 17:52:48 -07:00
pull.rst added/modifed tittle, description and keywords 2013-05-22 17:52:48 -07:00
push.rst added/modifed tittle, description and keywords 2013-05-22 17:52:48 -07:00
restart.rst added/modifed tittle, description and keywords 2013-05-22 17:52:48 -07:00
rm.rst change rm usage in docs 2013-07-17 19:24:54 +00:00
rmi.rst updated the rmi command docs, the had typos 2013-07-12 14:05:26 -04:00
run.rst Add lxc-conf flag to allow custom lxc options 2013-08-22 16:05:21 +00:00
search.rst Fix #1517, #1521 by adding sudo to examples and installation. 2013-08-14 16:21:36 -07:00
start.rst added/modifed tittle, description and keywords 2013-05-22 17:52:48 -07:00
stop.rst Updated the stop command's docs. 2013-07-21 19:00:18 -04:00
tag.rst added/modifed tittle, description and keywords 2013-05-22 17:52:48 -07:00
top.rst change to top 2013-07-01 15:19:42 +00:00
version.rst added/modifed tittle, description and keywords 2013-05-22 17:52:48 -07:00
wait.rst added/modifed tittle, description and keywords 2013-05-22 17:52:48 -07:00