9c4570a958
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com> Signed-off-by: Anusha Ragunathan <anusha@docker.com>
14 lines
365 B
Go
14 lines
365 B
Go
package daemon
|
|
|
|
import (
|
|
"github.com/docker/docker/container"
|
|
"github.com/docker/docker/libcontainerd"
|
|
)
|
|
|
|
// platformConstructExitStatus returns a platform specific exit status structure
|
|
func platformConstructExitStatus(e libcontainerd.StateInfo) *container.ExitStatus {
|
|
return &container.ExitStatus{
|
|
ExitCode: int(e.ExitCode),
|
|
OOMKilled: e.OOMKilled,
|
|
}
|
|
}
|