Question 1 recurrence
System: Ubuntu 18.04
docker version: 20.10.7
when I start a container, run the following command:
docker run -itd \
--runtime=nvidia --gpus=all \
-e NVIDIA_DRIVER_CAPABILITIES=compute,utility,video,graphics \
image_name
report errors:
docker: Error response from daemon: Unknown runtime specified nvidia.
See 'docker run --help'.
Solution 1
This is because the user did not join the docker group and added his own user to the docker user group.
sudo usermod -a -G docker $USER
Question 2 recurrence
docker: Error response from daemon: Unknown runtime specified nvidia.
See 'docker run --help'.
Solution 2
NVIDIA docker2 needs to be installed
sudo apt-get install -y nvidia-docker2
Restart docker
sudo systemctl daemon-reload
sudo systemctl restart docker
Read More:
- [Solved] OCI runtime create failed: /usr/bin/nvidia-container-runtime did not terminate successfully: unknown
- [Solved] Error response from daemon: manifest for nvidia/cuda:latest not found: manifest unknown: manifest
- Failed to Connect NVIDIA Driver: NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver
- [Solved] docker: Error response from daemon: OCI runtime create failed: container_linux.go:380
- [Solved] NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver
- [Solved] NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver.
- Docker Start Container Error: Error response from daemon: task already exists: unknown
- Linux Install Docker Error: Failed to restart docker.service: Unit docker.service not found.
- Runtime error – [xcodeproj] unknown object version. [How to Solve]
- [Solved] Docker Download Mirror Error: Cannot connect to the Docker daemon at…
- [Solved] docker Startup Error: Job for docker.service failed because the control process exited with error code
- [Solved] Docker Staratup Error: Failed to start Docker Application Container Engineadsafdsad.
- [Solved] Win 10 VS Code Connect to the container of the server error: Cannot connect to the Docker daemon at … Is the docker daemon running
- Docker pull Command Error response from daemon: Head https://registry-1.docker.io/v2/library/
- [Solved] Job for docker.service failed because the control process exited with error code. After changing the docker configuration
- NVIDIA SMI error after Ubuntu 20.04 restart [How to Solve]
- The solution of insufficient disk space of docker in Ubuntu
- Docker Error: error invoking remote method ‘docker-start-container‘: error: (http code 500) server error –
- See system logs and ‘systemctl status docker.service‘ for details
- [docker][issue]Error response from daemon: mkdir xxx: file exists: unknown