Skip to content

[Docker] Error while loading shared libraries: libgbm.so.1: cannot open shared object file: No such file or directory #4112

@baboo35

Description

@baboo35

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the latest beta/pre-release?

None

Describe the Bug

user@desktop:~/sunshine$ docker compose up
[+] Running 7/7
 ✔ sunshine Pulled                                                                                                                                               15.3s 
   ✔ 1d387567261e Pull complete                                                                                                                                   5.2s 
   ✔ e2be02af95e0 Pull complete                                                                                                                                   5.3s 
   ✔ 9f46cf7d644b Pull complete                                                                                                                                   6.4s 
   ✔ a1bd612e37ee Pull complete                                                                                                                                  12.8s 
   ✔ ab0a88100ea2 Pull complete                                                                                                                                  12.9s 
   ✔ 4f4fb700ef54 Pull complete                                                                                                                                  12.9s 
[+] Running 2/2
 ✔ Network sunshine_default  Created                                                                                                                              0.1s 
 ✔ Container sunshine        Created                                                                                                                              0.7s 
Attaching to sunshine
sunshine  | /usr/bin/sunshine: error while loading shared libraries: 
libgbm.so.1: cannot open shared object file: No such file or directory
sunshine exited with code 0

That's all the bug, sunshine binary needs for missed library.

Expected Behavior

Docker container must run

Additional Context

My compose.yaml (copied from DOCKER_README)

services:
  gaming:
    image: lizardbyte/sunshine:latest-ubuntu-24.04 # also tried 22.04 with no success
    container_name: sunshine
    restart: unless-stopped
    volumes:
      - "./config:/config"
    environment:
      # - PUID=<uid>
      # - PGID=<gid>
      - TZ="Europe/Moscow"
    ipc: host
    ports:
      - "47984-47990:47984-47990/tcp"
      - "48010:48010"
      - "47998-48000:47998-48000/udp"

Host Operating System

Docker

Operating System Version

Ubuntu 24.04 with latest updates on host, Docker already updated from docker repo

Architecture

amd64/x86_64

Sunshine commit or version

Don't know due container couldn't even starts

Package

Linux - Docker

GPU Type

NVIDIA

GPU Model

GTX-1050

GPU Driver/Mesa Version

nvidia-575

Capture Method

None

Config

Haven't yet. I'd hope containerized app creates default config for me

Apps

Haven't yet

Relevant log output

Logs above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions