docker-firefox icon indicating copy to clipboard operation
docker-firefox copied to clipboard

GPU hardware acceleration not working

Open lcsfox opened this issue 10 months ago • 2 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Current Behavior

I have the docker container running with access to the GPU (nvidia T400). nvidia-smi works fine inside and outside of the container. I can run oguzpastirmaci/gpu-burn next to the firefox container and I can see the load on the GPU.

What I see in about:support section

Image

Expected Behavior

No response

Steps To Reproduce

Install nvidia container toolkit run the compose file

Environment

OS : Debian 12
Docker version : 27.5.1 Installed from docker website

CPU architecture

x86-64

Docker creation

---
services:
  firefox:
    image: lscr.io/linuxserver/firefox:latest
    container_name: firefox
    security_opt:
      - seccomp:unconfined #optional
    environment:
      - PUID=1000
      - PGID=1000
      - NVIDIA_DRIVER_CAPABILITIES=all
      - TZ=Etc/UTC
      - FIREFOX_CLI=https://www.linuxserver.io/ #optional
    volumes:
      - /opt/dockerfiles/firefox_v2/config:/config
    ports:
      - 3000:3000
      - 3001:3001
    shm_size: "1gb"
    restart: unless-stopped
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [compute,graphics,utility,video]

Container logs

firefox  | MESA: error: ZINK: failed to choose pdev
firefox  | glx: failed to create drisw screen
firefox  | failed to load driver: zink
firefox  | [GFX1-]: glxtest: libEGL initialize failed
firefox  | [GFX1-]: glxtest: No visuals found

lcsfox avatar Feb 05 '25 14:02 lcsfox

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

github-actions[bot] avatar Feb 05 '25 14:02 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

LinuxServer-CI avatar Mar 07 '25 14:03 LinuxServer-CI

This issue is locked due to inactivity

LinuxServer-CI avatar Jun 05 '25 14:06 LinuxServer-CI