Signed-off-by: John Howard <jhoward@microsoft.com> Upstream-commit: 52f0474851298e7ba70b1a7ea16e3421d5926c98 Component: engine
12 lines
367 B
Go
12 lines
367 B
Go
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"}
|
|
}
|