Kategori : Docker, Linux Ubuntu, Misc08 April 2022 11:10:22

Connect to Docker Container with Specific User

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

 

 

Share : Share Facebook Share Twitter
Kategori : Docker, Linux Ubuntu, Misc08 April 2022 11:10:22

zuka.one
©2011