-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
container pause status #217
Comments
On Thu, Aug 20, 2015 at 10:11:58PM -0700, Rajasekaran wrote:
Since a config / state file can be stale, I think it makes more sense $ ps -o cgroup 29285 |
Thanks @wking for the confirmation |
I also noted this bug when testing the new runc ps command. Seems the state in the state.json file should be updated upon successful state change no? Otherwise what's the point of the file? |
With new container state machine changes #311, this will get fixed. On Tue, Nov 24, 2015 at 4:38 AM, Mike Brown notifications@github.com
|
Got fixed by #311 |
Use unsigned for IDs
@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
The text was updated successfully, but these errors were encountered: