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

Docker container should'nt run as root #72

Open
menardorama opened this issue Aug 17, 2020 · 6 comments
Open

Docker container should'nt run as root #72

menardorama opened this issue Aug 17, 2020 · 6 comments

Comments

@menardorama
Copy link

As a security measure, the Dockerfile should have a USER directive in order to run using a non privileged user account.

Can you add it ?

@GitJamz
Copy link

GitJamz commented Sep 12, 2020

This is absolutely true.. Please can we have this feature added as soon as possible!

@ebuzzz
Copy link

ebuzzz commented Jan 7, 2021

The container starts up exim (the actual SMTP agent) and that process drops root privileges. I guess the only way to fix this would be to add a new user (apart from Debian-exim) to the image, and chmod all files that exim needs at the startup. I've checked other images that use Exim4, but none of them seem to use this practice. Which leads me to suspect that there is an issue with my thought.

@laimison
Copy link

laimison commented Mar 9, 2021

Anyone modified it to avoid root account? If so, can you send what you did in a Dockerfile? If privileged port is the problem, maybe setcap can be used or converting the custom port inside the container to 25 outside of container.

@laimison
Copy link

laimison commented Mar 9, 2021

Here is the rootless Dockerfile that could be merged into this solution https://github.com/industrieco/docker-exim-relay

@guidoffm
Copy link

Here is the rootless Dockerfile that could be merged into this solution https://github.com/industrieco/docker-exim-relay

The link gives 404 now.

@katuka2
Copy link

katuka2 commented Nov 23, 2023

@laimison, this link is giving 404 now
https://github.com/industrieco/docker-exim-relay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants