mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-06 23:24:23 +08:00
fix: Fix the problem of adding exceptions to the image repository (#8585)
This commit is contained in:
parent
123a2e8998
commit
f0375a83bb
1 changed files with 4 additions and 2 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue