Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lxd-import] lxd/instance/drivers: Check running status with `InitPID…
…` for cgroups Cgroup storage limits are not applied when the container starts up. That is because `IsRunning` returns `false` during the container startup. This commits fixes this issue by relying on `InitPID` instead of `IsRunning`. The former will return a positive integer if the container is running even if the container is not fully set up yet. Fixes #12343 Signed-off-by: Thomas Hipp <[email protected]>
- Loading branch information