1
0
mirror of https://github.com/docker/docs.git synced 2026-11-01 22:34:29 +03:00

Login now works with daemon mode

This commit is contained in:
Guillaume J. Charmes
2013-03-22 18:37:53 -07:00
parent bd2a55cd26
commit ffe5370e35

View File

@@ -98,6 +98,8 @@ func (srv *Server) CmdLogin(stdin io.ReadCloser, stdout io.Writer, args ...strin
status, err := auth.Login(newAuthConfig)
if err != nil {
fmt.Fprintf(stdout, "Error : %s\n", err)
} else {
srv.runtime.authConfig = newAuthConfig
}
if status != "" {
fmt.Fprintf(stdout, status)