mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 10:17:17 +08:00
fix: 防止清除面板创建的网络
This commit is contained in:
@@ -132,6 +132,8 @@ func (r *containerImageRepo) Prune() error {
|
||||
}
|
||||
defer func(apiClient *client.Client) { _ = apiClient.Close() }(apiClient)
|
||||
|
||||
_, err = apiClient.ImagePrune(context.Background(), client.ImagePruneOptions{})
|
||||
_, err = apiClient.ImagePrune(context.Background(), client.ImagePruneOptions{
|
||||
Filters: make(client.Filters).Add("label", "created_by!=acepanel"),
|
||||
})
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user