We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52c4951 commit 2ff5ee8Copy full SHA for 2ff5ee8
1 file changed
internals/wol/wol.go
@@ -61,7 +61,13 @@ func doActivityCheck(threshold int) {
61
logger.Debug("Stopping Containers with ", query)
62
63
for _, id := range ids {
64
- if strings.ToLower(getLabel(id, WOL_AUTOSTOP)) != "false" {
+ autostop := getLabel(id, WOL_AUTOSTOP)
65
+
66
+ if strings.TrimSpace(autostop) == "" {
67
+ continue
68
+ }
69
70
+ if strings.ToLower(autostop) != "false" {
71
_, err := docker.StopContainer(id, client.ContainerStopOptions{})
72
73
if err != nil {
0 commit comments