Closed leonhartyao closed 2 months ago
I specified docker version with
sudo apt-get install docker-ce=5:27.1.1-1~ubuntu.22.04~jammy
sudo systemctl restart docker
And it works again. It seems that the client and server versions don't match before (27.1.2 vs 24.0.5)
Current:
docker version
Client: Docker Engine - Community
Version: 27.1.2
API version: 1.46
Go version: go1.21.13
Git commit: d01f264
Built: Mon Aug 12 11:50:12 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 27.1.1
API version: 1.46 (minimum version 1.24)
Go version: go1.21.12
Git commit: cc13f95
Built: Tue Jul 23 19:57:01 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.20
GitCommit: 8fc6bcff51318944179630522a095cc9dbf9f353
nvidia:
Version: 1.1.13
GitCommit: v1.1.13-0-g58aa920
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Issue
Today, I can't run my docker container with
--runtime="nvidia"
anymore.I have reinstalled nvidia-container-toolkit, nvidia-container-runtime is in the PATH. I haven't touched the config file:
Regardless of restarting docker service and rebooting, the runtime is always containerd and specifying nvidia as runtime leads to
docker: Error response from daemon: unknown or invalid runtime name: nvidia.
It is most likely due to a recent apt update, I noticed that docker was updated.
How to reproduce
Information