{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/831","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/831/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/831/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/831/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/831","id":39792920,"number":831,"title":"Idea: New volume type: \"container\"","user":{"login":"thockin","id":5595220,"avatar_url":"https://avatars.githubusercontent.com/u/5595220?v=3","gravatar_id":"","url":"https://api.github.com/users/thockin","html_url":"https://github.com/thockin","followers_url":"https://api.github.com/users/thockin/followers","following_url":"https://api.github.com/users/thockin/following{/other_user}","gists_url":"https://api.github.com/users/thockin/gists{/gist_id}","starred_url":"https://api.github.com/users/thockin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thockin/subscriptions","organizations_url":"https://api.github.com/users/thockin/orgs","repos_url":"https://api.github.com/users/thockin/repos","events_url":"https://api.github.com/users/thockin/events{/privacy}","received_events_url":"https://api.github.com/users/thockin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/area/app-config-deployment","name":"area/app-config-deployment","color":"fb6420"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/area/storage","name":"area/storage","color":"006b75"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/area/usability","name":"area/usability","color":"00cc00"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/kind/design","name":"kind/design","color":"50cba5"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/kind/enhancement","name":"kind/enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/kind/gsoc","name":"kind/gsoc","color":"84b6eb"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/priority/P3","name":"priority/P3","color":"fef2c0"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/status/help-wanted","name":"status/help-wanted","color":"159818"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/team/cluster","name":"team/cluster","color":"d2b48c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2014-08-08T05:11:34Z","updated_at":"2015-04-24T07:25:27Z","closed_at":null,"body":"This would map closely to Docker's native volumes support, and allow people to build and version pre-baked data as containers.  Maybe read-only?  Haven't thought that far..."},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments/95833089","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/831#issuecomment-95833089","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/831","id":95833089,"user":{"login":"thockin","id":5595220,"avatar_url":"https://avatars.githubusercontent.com/u/5595220?v=3","gravatar_id":"","url":"https://api.github.com/users/thockin","html_url":"https://github.com/thockin","followers_url":"https://api.github.com/users/thockin/followers","following_url":"https://api.github.com/users/thockin/following{/other_user}","gists_url":"https://api.github.com/users/thockin/gists{/gist_id}","starred_url":"https://api.github.com/users/thockin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thockin/subscriptions","organizations_url":"https://api.github.com/users/thockin/orgs","repos_url":"https://api.github.com/users/thockin/repos","events_url":"https://api.github.com/users/thockin/events{/privacy}","received_events_url":"https://api.github.com/users/thockin/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T07:25:27Z","updated_at":"2015-04-24T07:25:27Z","body":"Most docker containers today run as root, so you should be able to write to\na hostPath mount.  If you are running your containers as non-root (good for\nyou!) I would be amenable to some different tweak on the model that gave\nyou what you wanted.  For example, something like\n\n```\n\"hostPath\": { \"path\": \"/tmp/mypod\", \"uid\": 93, \"gid\": 76, \"mode\": 0700 }\n```\n\n...with well-defined semantics (e.g. only applies if the path does not\nexist or already exists in the exact same config).  or even something\nhigher level to abstract the real host path away.\n\nBut first - can you explain what \"persistent\" means to you?  Under what\nconditions is the data retained?  What is the bounding lifetime?\n\nOn Wed, Apr 22, 2015 at 7:36 AM, pwFoo <notifications@github.com> wrote:\n\n> I have a single host / minion setup and need local persistent storage.\n> Hostdir without permission fix isn't a solution, because the user inside\n> the container haven't permissions to write to the volume.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/GoogleCloudPlatform/kubernetes/issues/831#issuecomment-95210227>\n> .\n>\n"}}