blob: 97bcddd5f4a981a4383651755b118f8de630f3bb [file] [log] [blame]
package main
// sleepCommandForDaemonPlatform is a helper function that determines what
// the command is for a sleeping container based on the daemon platform.
// The Windows busybox image does not have a `top` command.
func sleepCommandForDaemonPlatform() []string {
if daemonPlatform == "windows" {
return []string{"sleep", "240"}
}
return []string{"top"}
}