mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-25 15:54:43 +00:00
🐛 Fix the cleanUpOldContainers
method by adding All: true
to ContainerListOptions
This commit is contained in:
parent
3b758d15a0
commit
207d89fa17
@ -103,7 +103,7 @@ func cleanUpOldContainers(
|
|||||||
nameHub string,
|
nameHub string,
|
||||||
nameWorker string,
|
nameWorker string,
|
||||||
) error {
|
) error {
|
||||||
containers, err := cli.ContainerList(ctx, types.ContainerListOptions{})
|
containers, err := cli.ContainerList(ctx, types.ContainerListOptions{All: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user