diff --git a/backend/app/service/docker.go b/backend/app/service/docker.go index a05b24e93..a56748363 100644 --- a/backend/app/service/docker.go +++ b/backend/app/service/docker.go @@ -136,12 +136,14 @@ func (u *DockerService) UpdateConf(req dto.SettingUpdate) error { switch req.Key { case "Registries": + req.Value = strings.TrimRight(req.Value, ",") if len(req.Value) == 0 { delete(daemonMap, "insecure-registries") } else { daemonMap["insecure-registries"] = strings.Split(req.Value, ",") } case "Mirrors": + req.Value = strings.TrimRight(req.Value, ",") if len(req.Value) == 0 { delete(daemonMap, "registry-mirrors") } else { diff --git a/frontend/src/components/upload/index.vue b/frontend/src/components/upload/index.vue index c9f6c5044..94267da5d 100644 --- a/frontend/src/components/upload/index.vue +++ b/frontend/src/components/upload/index.vue @@ -18,13 +18,13 @@ :stroke-width="12" :percentage="uploadPrecent" > -
+
{{ $t('database.supportUpType') }} {{ $t('database.zipFormat') }}
-
+
{{ $t('website.supportUpType') }} {{ $t('website.zipFormat', [type + '.json']) }}