{"action":"created","issue":{"url":"https://api.github.com/repos/opencontainers/specs/issues/41","labels_url":"https://api.github.com/repos/opencontainers/specs/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/opencontainers/specs/issues/41/comments","events_url":"https://api.github.com/repos/opencontainers/specs/issues/41/events","html_url":"https://github.com/opencontainers/specs/issues/41","id":92227918,"number":41,"title":"runtime: create state directory and structure","user":{"login":"crosbymichael","id":749551,"avatar_url":"https://avatars.githubusercontent.com/u/749551?v=3","gravatar_id":"","url":"https://api.github.com/users/crosbymichael","html_url":"https://github.com/crosbymichael","followers_url":"https://api.github.com/users/crosbymichael/followers","following_url":"https://api.github.com/users/crosbymichael/following{/other_user}","gists_url":"https://api.github.com/users/crosbymichael/gists{/gist_id}","starred_url":"https://api.github.com/users/crosbymichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crosbymichael/subscriptions","organizations_url":"https://api.github.com/users/crosbymichael/orgs","repos_url":"https://api.github.com/users/crosbymichael/repos","events_url":"https://api.github.com/users/crosbymichael/events{/privacy}","received_events_url":"https://api.github.com/users/crosbymichael/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-30T23:59:33Z","updated_at":"2015-07-01T01:43:21Z","closed_at":null,"body":"For supporting things like hooks and updates we need a way to define runtime state of the container.  This can be used to pass information to hooks so that they know the runtime state of the container and also used to dynamically make changes to resource allocations by running an update command for the runtime and have it reconcile the changes against the container's current state and the update requested.  \r\n\r\nFor the hooks usecase the state should contain information such as:\r\n\r\n* pid of the container's process\r\n* paths to the namespaces (linux)\r\n* paths to the cgroups setup for the container\r\n\r\nFor supporting updates the state should container information such as:\r\n\r\n* pid of the container's process\r\n* cgroup paths\r\n* container root path\r\n* cgroup/resource information \r\n* device nodes\r\n* rlimits \r\n* sysctls\r\n* mounts\r\n\r\nSome of this information would be duplicated from the initial container's config so it maybe worth it to look into embedding the original config into the state structure.  "},"comment":{"url":"https://api.github.com/repos/opencontainers/specs/issues/comments/117389446","html_url":"https://github.com/opencontainers/specs/issues/41#issuecomment-117389446","issue_url":"https://api.github.com/repos/opencontainers/specs/issues/41","id":117389446,"user":{"login":"mrunalp","id":53798,"avatar_url":"https://avatars.githubusercontent.com/u/53798?v=3","gravatar_id":"","url":"https://api.github.com/users/mrunalp","html_url":"https://github.com/mrunalp","followers_url":"https://api.github.com/users/mrunalp/followers","following_url":"https://api.github.com/users/mrunalp/following{/other_user}","gists_url":"https://api.github.com/users/mrunalp/gists{/gist_id}","starred_url":"https://api.github.com/users/mrunalp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrunalp/subscriptions","organizations_url":"https://api.github.com/users/mrunalp/orgs","repos_url":"https://api.github.com/users/mrunalp/repos","events_url":"https://api.github.com/users/mrunalp/events{/privacy}","received_events_url":"https://api.github.com/users/mrunalp/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T01:43:21Z","updated_at":"2015-07-01T01:43:21Z","body":"I think it makes sense to embed the config into the state as is. "}}