Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Allow the Setting of GUID / PUID on Docker Container #16

Open
adammckay opened this issue Jan 14, 2021 · 2 comments
Open

Comments

@adammckay
Copy link

Sorry, I didn't know where to post on Docker Hub but I know this is the code repo... here goes...

It would be nice if the Docker container allowed the setting of GUID / PUID in the environment variables (similar to all images produced by LinuxServer.io images. As it stands now, the Docker container downloads all files as root:root and then I must constantly chown the entire folder to work with it.

Thanks for your consideration.

@ksurl
Copy link
Contributor

ksurl commented Jan 18, 2021

you can use -u in docker run or user: in compose with the corresponding gid:uid

@undaunt
Copy link

undaunt commented Feb 4, 2021

@adammckay I too was familiar with how Linuxserver does it, but here is my compose and it's working excellently with the native docker features, as @ksurl mentioned.

# Podgrab - Podcast Downloader
  podgrab:
    image: akhilrex/podgrab
    container_name: podgrab
    restart: unless-stopped
    networks:
      - $TRAEFIK_NETWORK
    security_opt:
      - no-new-privileges
    user: "1000:1000"
    volumes:
      - ${DOCKERDIR}/podgrab:/config
      - ${MEDIADIR}/podcasts:/assets
    environment:
      - CHECK_FREQUENCY=60
    labels:
      - "traefik.enable=true"
      ## HTTP Routers
      - "traefik.http.routers.podgrab-rtr.entrypoints=https"
      - "traefik.http.routers.podgrab-rtr.rule=Host(`pod.$DOMAINNAME`)"
      ## Middlewares
      - "traefik.http.routers.podgrab-rtr.middlewares=chain-authelia@file"
      ## HTTP Services
      - "traefik.http.routers.podgrab-rtr.service=podgrab-svc"
      - "traefik.http.services.podgrab-svc.loadbalancer.server.port=8080"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants