mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
c8016e669f
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
11 lines
377 B
Go
11 lines
377 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 testEnv.DaemonPlatform() == "windows" {
|
|
return []string{"sleep", "240"}
|
|
}
|
|
return []string{"top"}
|
|
}
|