Thursday, January 13, 2022

[389-users] Re: Running dscontainer as a non-root user

> On 14 Jan 2022, at 15:45, Steve F <steve.falzon@outlook.com> wrote:
>
> Command I am using (in my run.sh) is:
>
> /usr/libexec/dirsrv/dscontainer -r
>
> And the volume is just a mounted directory at this point. This is my docker-compose.yml:
>
> ```
> version: '3.8'
> services:
> d389:
> build:
> dockerfile: Dockerfile
> context: .
> args:
> os_version: 8
> version: 1
> ports:
> - "3389"
> - "3636"
> privileged: true
> volumes:
> - type: bind
> source: ./bind/data
> target: /data
> read_only: false
> env_file: .env
> ```

And your volume at ./bind/data is chown-ed by the user that you have dirsrv running as? That's likely your issue here ...


--
Sincerely,

William Brown

Senior Software Engineer, Identity and Access Management
SUSE Labs, Australia
_______________________________________________
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.org
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure

No comments:

Post a Comment