fix: use correct value for DOCKER_CONFIG when logging in or out
This commit is contained in:
1 file changed
+2
-2
@@ -48,7 +48,7 @@ func CommandLogin(appName string, server string, username string, password strin
|
|||||||
if err := os.MkdirAll(configDir, 0700); err != nil {
|
if err := os.MkdirAll(configDir, 0700); err != nil {
|
||||||
return fmt.Errorf("Unable to create registry config directory: %w", err)
|
return fmt.Errorf("Unable to create registry config directory: %w", err)
|
||||||
}
|
}
|
||||||
env["DOCKER_CONFIG"] = GetAppRegistryConfigPath(appName)
|
env["DOCKER_CONFIG"] = GetAppRegistryConfigDir(appName)
|
||||||
}
|
}
|
||||||
|
|
||||||
result, err := common.CallExecCommand(common.ExecCommandInput{
|
result, err := common.CallExecCommand(common.ExecCommandInput{
|
||||||
@@ -100,7 +100,7 @@ func CommandLogout(appName string, server string) error {
|
|||||||
if !common.DirectoryExists(configDir) {
|
if !common.DirectoryExists(configDir) {
|
||||||
return fmt.Errorf("No registry credentials found for app %s", appName)
|
return fmt.Errorf("No registry credentials found for app %s", appName)
|
||||||
}
|
}
|
||||||
env["DOCKER_CONFIG"] = GetAppRegistryConfigPath(appName)
|
env["DOCKER_CONFIG"] = GetAppRegistryConfigDir(appName)
|
||||||
}
|
}
|
||||||
|
|
||||||
result, err := common.CallExecCommand(common.ExecCommandInput{
|
result, err := common.CallExecCommand(common.ExecCommandInput{
|
||||||
|
|||||||
Reference in new issue
Block a user