Skip to content

PUID environment variable is ignored in privileged mode #3

@CorentinWicht

Description

@CorentinWicht

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Dear Linuxserver support Team,

I may have uncovered an issue with your docker-brave browser such that it seems that the PUID environment variable is ignored and a default value of 911 is assigned when running the container (see my compose file below):

Image Image

Expected Behavior

Value assigned to PUID should be reflected in the docker log.

Steps To Reproduce

  1. Deploy a stack through Portainer using the default config from https://docs.linuxserver.io/images/docker-brave/#usage:
---
services:
  brave:
    image: lscr.io/linuxserver/brave:latest
    container_name: brave
    security_opt:
      - seccomp:unconfined #optional
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - /path/to/config:/config
    ports:
      - 3000:3000
      - 3001:3001
    shm_size: "1gb"
    restart: unless-stopped
  1. Notice that the PUID value is set to 911 whatever is defined within the PUID environment variable

Environment

- OS: Ubuntu 24.04.2 LTS
- How docker service was installed: Not sure, but container is deployed through Portainer 2.27.9 LTS

CPU architecture

x86-64

Docker creation

brave:
    image: lscr.io/linuxserver/brave:latest
    container_name: brave
    privileged: true
    devices:
      - "/dev/dri:/dev/dri"
    environment:
      - PUID=1000
      - PGID=1000
      - CUSTOM_PORT=3002
      - TZ="TZ=Europe/Zurich"
    volumes:
      - /home/Docker/appdata/Brave:/config
    ports:
      - 3002:3002
      - 3001:3001
    shm_size: "1gb"
    restart: unless-stopped

Container logs

[migrations] started
[migrations] no migrations found
usermod: user abc is currently used by process 56
usermod: user abc is currently used by process 56
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    911
User GID:    1000
───────────────────────────────────────
Linuxserver.io version: 1.80.122-ls21
Build-date: 2025-07-17T14:57:11+00:00
───────────────────────────────────────

**** creating video group videork27 with id 993 ****
**** adding /dev/dri/renderD128 to video group videork27 with id 993 ****
**** adding /dev/dri/card0 to video group video with id 44 ****
[custom-init] No custom files found, skipping...
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
screen 0 shmid 0
[ls.io-init] done.
time="2025-07-18T05:48:09.261629779Z" level=error msg="failed to mount overlay: invalid argument" storage-driver=overlay2
chmod: cannot access '/tmp/selkies*': No such file or directory

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions