mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 08:00:53 +00:00
fix: Fix the problem of adding exceptions to the image repository (#8585)
This commit is contained in:
@@ -222,8 +222,10 @@ func (u *ImageRepoService) handleRegistries(newHost, delHost, handle string) err
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := json.Unmarshal(file, &daemonMap); err != nil {
|
||||
return err
|
||||
if len(file) != 0 {
|
||||
if err := json.Unmarshal(file, &daemonMap); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
iRegistries := daemonMap["insecure-registries"]
|
||||
|
||||
Reference in New Issue
Block a user