how to change user from root to non root in running container

183 views
Skip to first unread message

rupali dixit

unread,
Jun 29, 2020, 8:54:07 AM6/29/20
to Rajesh Kumar, cc: DevOps Support
hi ,

i am running tomcat as container as root user as all th files/folder are with owner root. can anyone suggest how i can convert it to non root user. i am getiing alert that files are being created at root for that server.

image.png

Rajesh Kumar

unread,
Jun 29, 2020, 3:47:56 PM6/29/20
to rupali dixit, cc: DevOps Support
DOCKER FILE NEED TO HAVE THESE CHANGES>

1. Create a tomcat user & group using linux command
2. USE Tomcat user

Example - Jenkins container is running as aJenkins user.

-----------------------------------------------------------
Warm Regards,
Rajesh Kumar
Principal DevOps Architect and Manager
Find me@ www.RajeshKumar.xyz


Reply all
Reply to author
Forward
0 new messages