Connect to docker container will using root as default user (or user defined when we create container), but sometimes we need to connect to docker container with specific user. To do this we can use command bellow:
docker exec -it --user user_name container bash
zuka.one
©2011