Skip to content

Commit

Permalink
missing ~/.docker/config.json logged as a debug (#2293)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyposcaler-bot authored Nov 14, 2024
1 parent 7bd4f03 commit 978f006
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion runtime/docker/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ func GetDockerConfig(configPath string) (*DockerConfig, error) {

file, err := os.ReadFile(dockerConfigPath)
if err != nil {
log.Infof("Could not read docker config: %v", err)
if errors.Is(err, os.ErrNotExist) {
log.Debugf("Could not read docker config: %v", err)
} else {
log.Infof("Could not read docker config: %v", err)
}
return nil, err
}

Expand Down

0 comments on commit 978f006

Please sign in to comment.