I'm unable to use the below command to use nvidia gpus inside the container :
docker run --gpus all nvidia/cuda:10.0-base nvidia-smi
"--gpus" requires API version 1.40, but the Docker daemon API version is 1.39
It requires API version 1.4 :
Client: Docker Engine - Community
Version: 19.03.12
API version: 1.39
Go version: go1.13.10
Git commit: 48a66213fe
Built: Mon Jun 22 15:45:36 2020
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.9
API version: 1.39 (minimum version 1.12)
Go version: go1.11.13
Git commit: 039a7df
Built: Wed Sep 4 16:19:38 2019
OS/Arch: linux/amd64
Experimental: false ```
I'm unable to find a way to upgrade the daemon api .
Please help.