mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-17 16:11:01 -04:00
12 lines
377 B
Go
12 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"}
|
||
|
}
|