cancel
Showing results for 
Search instead for 
Did you mean: 

Docker image with non-root user

SOLVED
Highlighted
New Contributor

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?

Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Staff

Re: Docker image with non-root user

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.

View solution in original post

5 REPLIES 5
Highlighted
Community Manager

Re: Docker image with non-root user

Hi @sdas , please check out this article about the rootless mode for Docker, it might help!

 


Sonya Mihaljova
Community and Education Specialist
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
New Contributor

Re: Docker image with non-root user

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

Highlighted
Community Manager

Re: Docker image with non-root user

@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
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
New Contributor

Re: Docker image with non-root user

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

Highlighted
Staff

Re: Docker image with non-root user

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.

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to change request body before sending it to the server for the TechCorner tag!


Scripts created in June:
- A script to generate a request body based on data from Datasource
- A script to go through all response nodes and check the value of the required field
- A Dispatching script to get responses based on the values in Request Body
- A script to add a new tag and assign it to all TestCases in a TestSuite
Top Kudoed Authors