In the 6th Docker Container Tutorial I demonstrate how to connect to a docker container via a specific user.
By default docker attaches to a container using the root user.
This isn't ideal for security reasons and some applications need to run as certain users.
In this tutorial I create a Unix user account inside a Ubuntu container.
I then connect to that user from the host machine.
Want to learn more about Docker? Peter Fisher is the author of Docker In Motion. This interactive online course will teach you the fundamentals of Docker http://bit.ly/2vvz2sA