Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile #62

Closed
wants to merge 2 commits into from
Closed

Conversation

denisbabineau
Copy link
Contributor

  • container was failing to start, updated the process name in Dockerfile
  • container process was failing to write files in mounted volumes when using -v as in the README.md example; no need to run the contained process as non-root

@jmwilkinson
Copy link
Contributor

Does running as root here have any security implications?

@rentzsch
Copy link

rentzsch commented Sep 29, 2016

@jmwilkinson I'm 95% sure there's no security implications to running as root inside a container. The container provides the security isolation so it can't access the host. Worst case is that the server executes malicious code that can access your private repos. But that would be the case anyway running under a non-root user since it has to be able to access the host's volume in order to vend it.

@denisbabineau
Copy link
Contributor Author

I agree with @rentzsch. See this thread with posts covering both angles: https://forums.docker.com/t/root-user-or-non-root-user-inside-container/966/3
I would say in this case ease of use trumps ultra-paranoid security concerns. If someone is so extremely concerned, he should use his own Dockerfile, but I don't expect this would be your typical usage. For instance, Docker's own registry image runs as root as well inside the container.

@trentearl
Copy link
Contributor

I dont use docker, so the best I can do is look these changes over to make sure nothing looks malicious. Thanks for this change!

Committed with: 3729c13

@trentearl trentearl closed this Oct 12, 2016
@jmwilkinson jmwilkinson mentioned this pull request Jan 24, 2017
@lock
Copy link

lock bot commented May 31, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants