<p>I'm deploying the <strong>hyperledger/fabric-couchdb</strong> docker image on Rancher-Kubernetes. In the cluster, it's not allowed run container as ROOT. So we need select as Nonroot while deploying images. </p>

<p>After deploying <strong>hyperledger/fabric-couchdb</strong>, the pod is not getting started. When I checked logs, the message is <strong>su-exec: setgroups: Operation not permitted</strong>. In the below image, I have attached a screenshot from Event as well. Please suggest what needs to done to make it work or am I doing something wrong here.</p>

<p><a href="https://i.stack.imgur.com/DIs27.png" rel="nofollow noreferrer">Event screenshot</a></p>

<p>That's the problem, you are not running as 'root' and the container entrypoint executes a call to <code>setgroups</code> which requires 'root'. You will have to either run as 'root' somehow or you can modify your container image and the entrypoint to perhaps make those calls where 'root' is require using something like 'sudo'. </p>

<p>Note that whatever user call 'sudo' needs to have 'root' like permissions to execute <code>setgroups</code></p>
