The error usually occurs when Nvidia driver is newly installed or docker/nvidia-docker is installed.

Simply type:

$ sudo service nividia-docker restart