docker-openldap icon indicating copy to clipboard operation
docker-openldap copied to clipboard

How to build a container from this image that runs as non-root user

Open creasman opened this issue 4 years ago • 5 comments

I need to build an LDAP server from this image that runs as non-root. Is there a way to do this? I've tried creating a user with root privileges and then running as this user, but the server fails to start. Our Kubernetes environment requires that we run all pods as non-root. Would very much appreciate a solution to this.

creasman avatar Feb 03 '21 22:02 creasman

Hi @creasman

Did you find any solution for this? please respond

Deepakganigerupgrad avatar Mar 08 '24 06:03 Deepakganigerupgrad

please share if you found any solution for this

Deepakganigerupgrad avatar Mar 08 '24 06:03 Deepakganigerupgrad

I was never able to make this work using osixia. Instead, I created my own image by installing openldap into a node-alpine base image. A bit more work, but it runs as non-root.

creasman avatar Mar 20 '24 14:03 creasman

Hi Jim, Could you please any Documents to create own image which runs as arbitrary user assigned by ocp

On Wed, 20 Mar 2024 at 8:21 PM, Jim Creasman @.***> wrote:

I was never able to make this work using osixia. Instead, I created my own image by installing openldap into a node-alpine base image. A bit more work, but it runs as non-root.

— Reply to this email directly, view it on GitHub https://github.com/osixia/docker-openldap/issues/528#issuecomment-2009759629, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAGDJ2AF67HCSCATBHMHVYDYZGPAJAVCNFSM4XBV6PQKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBQHE3TKOJWGI4Q . You are receiving this because you commented.Message ID: @.***>

Deepakganigerupgrad avatar Mar 21 '24 03:03 Deepakganigerupgrad

@creasman do you have any document/files using which you created own openldap image

Deepakganigerupgrad avatar Mar 27 '24 07:03 Deepakganigerupgrad