mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 15:28:35 +00:00
Fix the rootPath for auth
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ func (srv *Server) CmdLogin(stdin io.ReadCloser, stdout io.Writer, args ...strin
|
||||
password = srv.runtime.authConfig.Password
|
||||
email = srv.runtime.authConfig.Email
|
||||
}
|
||||
newAuthConfig := &auth.AuthConfig{Username: username, Password: password, Email: email}
|
||||
newAuthConfig := auth.NewAuthConfig(username, password, email, srv.runtime.root)
|
||||
status, err := auth.Login(newAuthConfig)
|
||||
if err != nil {
|
||||
fmt.Fprintf(stdout, "Error : %s\n", err)
|
||||
|
||||
Reference in New Issue
Block a user