Skip to content

container pause status #217

@rajasec

Description

@rajasec

@crosbymichael @LK4D4 @mrunalp
When I've tried to get the container status whether it is paused or frozen, Eventhough it was paused by runc container.status always returns Running..
Current implementation look for
if c.config.Cgroups != nil && c.config.Cgroups.Freezer == configs.Frozen
c.config.Cgroups.Freezer always comes with empty, as it never got initialized with
any values in cgroup creation in spec.go ( also confirmed by looking freezer value in state.json).
Also realized that Freezer subsystem was never part of spec_linux.
Docker handles this situation by adding flag to true to container.Paused variable during container pause.
is runc going to have different implementation to check container status for pause situation.
For checking the container status, do we need to check by config value ( as per current implementation) or check the run time of cgroups freezer for the specific container

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions