Docker image with non-root user
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Docker image with non-root user
I downloaded the docker image smartbear/ready-api-soapui-testrunner from docker hub. It looks like it runs as root user. I would like to run the application as a non-root user. Is that possible?
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @sdas , please check out this article about the rootless mode for Docker, it might help!
Sonya Mihaljova
Community and Education Specialist
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sonya,
Thanks for your response . However, this is not the solution i am looking for. When we run the Smartbear docker image, it executes as root user. We are trying to use this docker image in Openshift environment where no docker image is allowed to run as root.
If you have any pointers for that , it would be very helpful
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@sdas I am not sure this is a ReadyAPI-related issue. I would suggest that you try finding a way of working with Docker itself.
An idea - if you don't have a non-root user, you can try creating a new one and using it to log in.
Sonya Mihaljova
Community and Education Specialist
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sonya,
I'm not sure if you understand what i am trying to explain. It is not about creating non-root users. The docker image by SmartBear when started, executes as a root user. You can try to test it yourself to see what i'm talking about.
The most probable solution is to modify the docker image itself to start as a non root user
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @sdas,
Currently, the SoapUI Docker container requires root permissions, indeed, while by default, OpenShift does not allow containers to run as root.
If you use OpenShift Container Platform (the self-hosted solution), you can use a workaround described in this article:
https://blog.openshift.com/getting-any-docker-image-running-in-your-own-openshift-cluster
If you use OpenShift Online or OpenShift Dedicated, you would need to wait for SmartBear to provide an image that does not require the container to run as root - we have registered a corresponding enhancement for this: RIA-12792.
Hope this information helps.
Julia
Customer Care Team
Did my reply answer your question? Please give Kudos or Accept it as a Solution to help others.
