title: how to setcap for a binary file in docker image
body: <p>I want to set capabilities for some binary files in my docker image so that i can execute them in a container with a non-root user, i have tried to setcap in my dockerfile:<a href="https://i.stack.imgur.com/M1npg.png" rel="nofollow noreferrer">dockerfile</a>, then i built this image with docker build: <a href="https://i.stack.imgur.com/PlYxY.png" rel="nofollow noreferrer">docker build</a>, but when i created a container with this image, i can not find any capability set for the file: <a href="https://i.stack.imgur.com/gnfYk.png" rel="nofollow noreferrer">no capability</a>. Is this a docker bug? Or is there any other way to set capabilities for files in docker image?</p>