mitmproxy / docker-releases

🗃️ This repository has been integrated into mitmproxy/mitmproxy.
52 stars 26 forks source link

Fix permission for mitmproxy directory #8

Closed maxcnunes closed 7 years ago

maxcnunes commented 7 years ago

Fix issue https://github.com/mitmproxy/docker-releases/issues/6.

This approach is the same used by official Docker images such as mysql and postgres.

Running the container with any mitmproxy tool it will set the required permissions for mitmproxy directory and run the process also with the mitmproxy user.

Otherwise it will run the passed arg with the root user. Which allows the user to test the container with any command. Just will not set the directory permission running this way.

mhils commented 7 years ago

Sorry, this apparently got lost within the emails for the main repo! Thanks so much for this - this looks fantastic and I'll include it in the next release ASAP. :smiley: 🍰 🎉