{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/dotnet-docker/issues/552","repository_url":"https://api.github.com/repos/dotnet/dotnet-docker","labels_url":"https://api.github.com/repos/dotnet/dotnet-docker/issues/552/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/dotnet-docker/issues/552/comments","events_url":"https://api.github.com/repos/dotnet/dotnet-docker/issues/552/events","html_url":"https://github.com/dotnet/dotnet-docker/issues/552","id":325304027,"number":552,"title":"Run as non-root user in samples","user":{"login":"nphmuller","id":3781551,"avatar_url":"https://avatars1.githubusercontent.com/u/3781551?v=4","gravatar_id":"","url":"https://api.github.com/users/nphmuller","html_url":"https://github.com/nphmuller","followers_url":"https://api.github.com/users/nphmuller/followers","following_url":"https://api.github.com/users/nphmuller/following{/other_user}","gists_url":"https://api.github.com/users/nphmuller/gists{/gist_id}","starred_url":"https://api.github.com/users/nphmuller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nphmuller/subscriptions","organizations_url":"https://api.github.com/users/nphmuller/orgs","repos_url":"https://api.github.com/users/nphmuller/repos","events_url":"https://api.github.com/users/nphmuller/events{/privacy}","received_events_url":"https://api.github.com/users/nphmuller/received_events","type":"User","site_admin":false},"labels":[{"id":850408620,"url":"https://api.github.com/repos/dotnet/dotnet-docker/labels/area:samples","name":"area:samples","color":"3814c9","default":false},{"id":287524928,"url":"https://api.github.com/repos/dotnet/dotnet-docker/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-22T13:52:07Z","updated_at":"2018-05-23T18:45:25Z","closed_at":null,"author_association":"NONE","body":"Since it's considered a [best practice](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user) to run a container as a non-root user, could you extend the samples to do this? Or maybe there is even a way to do this from the base images."},"comment":{"url":"https://api.github.com/repos/dotnet/dotnet-docker/issues/comments/391455924","html_url":"https://github.com/dotnet/dotnet-docker/issues/552#issuecomment-391455924","issue_url":"https://api.github.com/repos/dotnet/dotnet-docker/issues/552","id":391455924,"user":{"login":"richlander","id":2608468,"avatar_url":"https://avatars3.githubusercontent.com/u/2608468?v=4","gravatar_id":"","url":"https://api.github.com/users/richlander","html_url":"https://github.com/richlander","followers_url":"https://api.github.com/users/richlander/followers","following_url":"https://api.github.com/users/richlander/following{/other_user}","gists_url":"https://api.github.com/users/richlander/gists{/gist_id}","starred_url":"https://api.github.com/users/richlander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richlander/subscriptions","organizations_url":"https://api.github.com/users/richlander/orgs","repos_url":"https://api.github.com/users/richlander/repos","events_url":"https://api.github.com/users/richlander/events{/privacy}","received_events_url":"https://api.github.com/users/richlander/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T18:45:25Z","updated_at":"2018-05-23T18:45:25Z","author_association":"MEMBER","body":"Good suggestion. Doing this would cause us to have platform-specific Dockerfiles. We already offer multiple Dockerfiles for other reasons, like unit testing or not. We'd have to provide multiple versions of these Dockerfiles to account for this request. We think the benefit for non-root in our samples isn't high enough to warrant doubling the Dockerfile count, both for us as the maintainers and all the readers would read them."}}
{"actor":{"display_login":"richlander"}}