Skip to content

[BUG]Running as root instead of 1000:1000 user #43

Open
@talhaanwarch

Description

@talhaanwarch

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After running docker file, when i attached shell and whoami I get root.
When I run id
I got
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)

Expected Behavior

I am not expecting it to root.

Steps To Reproduce

Just tun the docker compose file

Environment

- OS: 22.04
- How docker service was installed:

CPU architecture

x86-64

Docker creation

Here is the docker compose file

services:
  speedtest-tracker:
    image: lscr.io/linuxserver/speedtest-tracker:latest
    container_name: speedtest-tracker
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Asia/Karachi
      - APP_KEY=base64:xxxxxxx
      - APP_URL=
      - DB_CONNECTION=sqlite
      - SPEEDTEST_SCHEDULE="0 */4 * * *"
      - SPEEDTEST_SERVERS=
      - DB_HOST= #optional
      - DB_PORT= #optional
      - DB_DATABASE= #optional
      - DB_USERNAME=${DB_USERNAME} #optional
      - DB_PASSWORD=${DB_PASSWORD} #optional
      - DISPLAY_TIMEZONE=Asia/Karachi #optional
      - PRUNE_RESULTS_OLDER_THAN=0 #optional
    volumes:
      - config:/config
    ports:
      - 8003:80
    restart: unless-stopped
    networks:
      - mynetwork

networks:
  mynetwork:
    external: true

volumes:
  config:

Container logs

[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] done
───────────────────────────────────────

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

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

To support the app dev(s) visit:
speedtest-tracker: https://github.com/sponsors/alexjustesen

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

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

User UID:    1000
User GID:    1000
───────────────────────────────────────
Linuxserver.io version: v1.2.3-ls79
Build-date: 2025-02-16T15:43:16+00:00
───────────────────────────────────────
    
using keys found in /config/keys
[custom-init] No custom files found, skipping...
[ls.io-init] done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status

      Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions