blob: 4eac5cad353935ccb1f672603c45a00262f7831b [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 testEnv.DaemonInfo.OSType == "windows" {
return []string{"sleep", "240"}
}
return []string{"top"}
}