GithubHelp home page GithubHelp logo

Comments (5)

maplepy avatar maplepy commented on May 29, 2024

sudo docker info | grep Runtime

 Runtimes: io.containerd.runc.v2 nvidia runc
 Default Runtime: nvidia

it was previously

 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc

Note that changing this resulted in

sudo docker-compose up --force-recreate
[+] Running 1/1
 ✔ Container steam-headless-steam-headless-1  Recreated                      0.1s 
Attaching to steam-headless-1
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v2.task/moby/773e337cdf64f3b64802433e5a4657f0ec8104ee9937a47873bf04eb6d7efa8b/log.json: no such file or directory): fork/exec /usr/bin/nvidia-container-runtime: no such file or directory: unknown

from docker-steam-headless.

p5-f20w18k avatar p5-f20w18k commented on May 29, 2024

Not helpful I know - but I also had the same issue a few hours ago when trying to get this running, same OS, same config

from docker-steam-headless.

dexd85 avatar dexd85 commented on May 29, 2024

Hi,

had a similar issue from beginning and for my was a important hint missing: You have to install and configure at the first the Nvidia Contrainer Toolkit on your host - it seems not to be installed on your machine....please follow the instructions in this Link:
https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html

from docker-steam-headless.

p5-f20w18k avatar p5-f20w18k commented on May 29, 2024

Hi,

had a similar issue from beginning and for my was a important hint missing: You have to install and configure at the first the Nvidia Contrainer Toolkit on your host - it seems not to be installed on your machine....please follow the instructions in this Link: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html

I do have it installed, tested with docker run --gpus all nvidia/cuda:12.1.1-runtime-ubuntu22.04 nvidia-smi

+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.06              Driver Version: 545.29.06    CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3070        Off | 00000000:0E:00.0 Off |                  N/A |
|  0%   24C    P8              12W / 240W |     13MiB /  8192MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
+---------------------------------------------------------------------------------------+

Edit: my error ends with 'runtime did not terminate successfully'

I think this is a docker/nvidia related issue instead of an issue with this container.

from docker-steam-headless.

p5-f20w18k avatar p5-f20w18k commented on May 29, 2024

sudo docker info | grep Runtime

 Runtimes: io.containerd.runc.v2 nvidia runc
 Default Runtime: nvidia

it was previously

 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc

Note that changing this resulted in

sudo docker-compose up --force-recreate
[+] Running 1/1
 ✔ Container steam-headless-steam-headless-1  Recreated                      0.1s 
Attaching to steam-headless-1
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v2.task/moby/773e337cdf64f3b64802433e5a4657f0ec8104ee9937a47873bf04eb6d7efa8b/log.json: no such file or directory): fork/exec /usr/bin/nvidia-container-runtime: no such file or directory: unknown

See [here]https://gitlab.com/nvidia/container-toolkit/container-toolkit/-/issues/17) for runtime errors, arch wiki was also helpful.

My compose file below, it may not be fully correct yet, dont know if its working as ive only just ran docker-compose up. Just documenting my workflow of this.

--- services: steam-headless: image: josh5/steam-headless:latest restart: unless-stopped runtime: ${DOCKER_RUNTIME} shm_size: ${SHM_SIZE} ipc: host # Could also be set to 'shareable' ulimits: nofile: soft: 1024 hard: 524288 cap_add: - NET_ADMIN - SYS_ADMIN - SYS_NICE security_opt: - seccomp:unconfined - apparmor:unconfined network_mode: host hostname: ${NAME} extra_hosts: - "${NAME}:127.0.0.1" env_file: .env # devices: # - /dev/fuse # - /dev/uinput # - driver: nvidia # count: 1 # capabilities: [gpu] devices: - /dev/fuse - /dev/uinput - /dev/dri/renderD128:/dev/dri/renderD128 - /dev/dri/card0:/dev/dri/card0 - /dev/nvidia0:/dev/nvidia0 - /dev/nvidiactl:/dev/nvidiactl - /dev/nvidia-uvm:/dev/nvidia-uvm # - driver = nvidia # count: 1 # capabilities: [gpu] device_cgroup_rules: - 'c 13:* rmw' volumes: - /opt/container-data/steam-headless/home/:/home/default/:rw - /mnt/games/:/mnt/games/:rw - /opt/container-data/steam-headless/.X11-unix/:/tmp/.X11-unix/:rw

from docker-steam-headless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.