Using Docker to get root access

The Docker daemon runs with root privileges, and that can have unintended consequences if you let non-privileged users run docker via sudo. I provide an example of sharing the /etc/passwd file from the host to the container in order to elevate a non-privileged user’s status to root.