Comments (5)
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.
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.
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.
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.
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)
- [Bug]: In-game voice chat has output looped back to input
- Running the container while running an xserver HOT 3
- [Bug]: Steam crached on truenas scale HOT 4
- ProtonUp-Qt probably should be in the default install. HOT 1
- Wayland display server support for Sway or KDE Plasma HOT 1
- [Bug]: unrecognized option: "--no-multigpu" HOT 6
- [Bug]: Wrong language after restart
- [Bug]: xorg unable to start HOT 7
- [Bug]: Steam stuck at "Loading user data" HOT 5
- [Bug]: ProtonUp-Qt Won't Save - TF2 won't launch HOT 1
- Issues with Docker Compose Instructions HOT 3
- [Bug]: ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries
- Quality of Life improvement for user in Mainland China.
- [Bug]: container not using gpu HOT 3
- Migrate docker compose from v1 to v2
- Video Request HOT 1
- Add local audio support for HDMI output. HOT 1
- Unclear if supports AMD Radeon GPU HOT 12
- [Bug]: Uncaught TypeError: this.audio.fastSeek is not a function HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-steam-headless.