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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.
Rajesh Kumar
unread,
Jun 29, 2020, 3:47:56 PM6/29/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.