{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/6530","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/6530/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/6530/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/6530/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/6530","id":66971058,"number":6530,"title":"Starting a container in privileged mode","user":{"login":"tshrklr","id":1879462,"avatar_url":"https://avatars.githubusercontent.com/u/1879462?v=3","gravatar_id":"","url":"https://api.github.com/users/tshrklr","html_url":"https://github.com/tshrklr","followers_url":"https://api.github.com/users/tshrklr/followers","following_url":"https://api.github.com/users/tshrklr/following{/other_user}","gists_url":"https://api.github.com/users/tshrklr/gists{/gist_id}","starred_url":"https://api.github.com/users/tshrklr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tshrklr/subscriptions","organizations_url":"https://api.github.com/users/tshrklr/orgs","repos_url":"https://api.github.com/users/tshrklr/repos","events_url":"https://api.github.com/users/tshrklr/events{/privacy}","received_events_url":"https://api.github.com/users/tshrklr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-07T19:17:12Z","updated_at":"2015-04-07T19:48:19Z","closed_at":null,"body":"From https://github.com/GoogleCloudPlatform/kubernetes/pull/1288 it looks like kubernetes supports  starting containers in privileged mode. However I couldn't find any info in either the docs or `kubectl run-container -h` on how to actually run a container with privileged mode enabled.\r\n\r\nAdditionally, I would like to know if kubernetes allows for host networking mode in a container (--net=host option in docker run)?"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments/90711374","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/6530#issuecomment-90711374","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/6530","id":90711374,"user":{"login":"vishh","id":7063592,"avatar_url":"https://avatars.githubusercontent.com/u/7063592?v=3","gravatar_id":"","url":"https://api.github.com/users/vishh","html_url":"https://github.com/vishh","followers_url":"https://api.github.com/users/vishh/followers","following_url":"https://api.github.com/users/vishh/following{/other_user}","gists_url":"https://api.github.com/users/vishh/gists{/gist_id}","starred_url":"https://api.github.com/users/vishh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishh/subscriptions","organizations_url":"https://api.github.com/users/vishh/orgs","repos_url":"https://api.github.com/users/vishh/repos","events_url":"https://api.github.com/users/vishh/events{/privacy}","received_events_url":"https://api.github.com/users/vishh/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T19:48:19Z","updated_at":"2015-04-07T19:48:19Z","body":"To run a container in privileged mode, you need to set ['Container.Privileged'](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/api/v1beta1/types.go#L461) to true. You will have to update your Pod config.\r\n\r\nKubernetes does not allow running container in the host net namespace as of now. I am curious to understand your use case. Why does the current kube networking model not work for your use case?"}}