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: https://github.com/opensearch-project/opensearch-build/blob/main/docker/release/config/opensearch/opensearch-docker-entrypoint.sh#L77

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!