🐛 Fix the cleanUpOldContainers method by adding All: true to ContainerListOptions

This commit is contained in:
M. Mert Yildiran 2023-06-29 02:22:57 +03:00
parent 3b758d15a0
commit 207d89fa17
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461

View File

@ -103,7 +103,7 @@ func cleanUpOldContainers(
nameHub string,
nameWorker string,
) error {
containers, err := cli.ContainerList(ctx, types.ContainerListOptions{})
containers, err := cli.ContainerList(ctx, types.ContainerListOptions{All: true})
if err != nil {
return err
}