Forum Discussion

sdas's avatar
sdas
New Contributor
4 years ago
Solved

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?

  • 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.

5 Replies

  • JKolosova's avatar
    JKolosova
    SmartBear Alumni (Retired)

    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.

    • sdas's avatar
      sdas
      New Contributor

      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

      • sonya_m's avatar
        sonya_m
        SmartBear Alumni (Retired)

        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.