2016-08-17 22:46:28 +00:00
|
|
|
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 {
|
2018-01-15 14:32:06 +00:00
|
|
|
if testEnv.OSType == "windows" {
|
2016-08-17 22:46:28 +00:00
|
|
|
return []string{"sleep", "240"}
|
|
|
|
}
|
|
|
|
return []string{"top"}
|
|
|
|
}
|