mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
oci: drop reference to runc
it can be any OCI runtime. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -473,7 +473,7 @@ func (r *OCIRuntime) createOCIContainer(ctr *Container, cgroupParent string, res
|
|||||||
// If useRunc is false, we will not directly hit runc to see the container's
|
// If useRunc is false, we will not directly hit runc to see the container's
|
||||||
// status, but will instead only check for the existence of the conmon exit file
|
// status, but will instead only check for the existence of the conmon exit file
|
||||||
// and update state to stopped if it exists.
|
// and update state to stopped if it exists.
|
||||||
func (r *OCIRuntime) updateContainerStatus(ctr *Container, useRunc bool) error {
|
func (r *OCIRuntime) updateContainerStatus(ctr *Container, useRuntime bool) error {
|
||||||
exitFile := ctr.exitFilePath()
|
exitFile := ctr.exitFilePath()
|
||||||
|
|
||||||
runtimeDir, err := util.GetRootlessRuntimeDir()
|
runtimeDir, err := util.GetRootlessRuntimeDir()
|
||||||
@ -481,8 +481,8 @@ func (r *OCIRuntime) updateContainerStatus(ctr *Container, useRunc bool) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// If not using runc, we don't need to do most of this.
|
// If not using the OCI runtime, we don't need to do most of this.
|
||||||
if !useRunc {
|
if !useRuntime {
|
||||||
// If the container's not running, nothing to do.
|
// If the container's not running, nothing to do.
|
||||||
if ctr.state.State != ContainerStateRunning && ctr.state.State != ContainerStatePaused {
|
if ctr.state.State != ContainerStateRunning && ctr.state.State != ContainerStatePaused {
|
||||||
return nil
|
return nil
|
||||||
|
Reference in New Issue
Block a user