mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-22 13:27:32 +08:00
This commit is contained in:
parent
bfa111541b
commit
14bbb8c65d
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ func (u *ContainerService) Page(req dto.PageContainer) (int64, interface{}, erro
|
|||
if len(req.Name) != 0 {
|
||||
length, count := len(list), 0
|
||||
for count < length {
|
||||
if !strings.Contains(list[count].Names[0][1:], req.Name) {
|
||||
if !strings.Contains(list[count].Names[0][1:], req.Name) && !strings.Contains(list[count].Image, req.Name) {
|
||||
list = append(list[:count], list[(count+1):]...)
|
||||
length--
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue