OpenSearch and codefresh services: Unable to run docker container as non-root

I’m trying run open search in a codefresh pipeline services definition but I’m hitting this restriction check that does not allow the container to run with a root user: opensearch-build/opensearch-docker-entrypoint.sh at main · opensearch-project/opensearch-build · GitHub

Is there a trick to getting this to work?

You can specify user same as in [docker-compose](https://docs.docker.com/compose/compose-file/#user), i.e.:

        services:
          web:
            image: alpine
            user: 1000:1000
            command: ls -l /test
1 Like

argh, of course. Thanks!