# Background * [Understanding how uid and gid work in Docker containers](https://medium.com/@mccode/understanding-how-uid-and-gid-work-in-docker-containers-c37a01d01cf) Jan 2017 * [Processes In Containers Should Not Run As Root](https://medium.com/@mccode/processes-in-containers-should-not-run-as-root-2feae3f0df3b) Sept 2017 # Solutions Prior to Docker supporting User Namespaces * [Handling Permissions with Docker Volumes](https://denibertovic.com/posts/handling-permissions-with-docker-volumes/) Feb 2016 * [Mounting volumes and mapping host user to docker user](https://github.com/moby/moby/issues/22258) Apr 2016 With User Namespaces * [Using User Namespaces on Docker](https://coderwall.com/p/s_ydlq/using-user-namespaces-on-docker) * [Docker and --userns-remap, how to manage volume permissions to share data between host and container?](https://stackoverflow.com/questions/35291520/docker-and-userns-remap-how-to-manage-volume-permissions-to-share-data-betwee) Feb 2016