How to build YOLACT++ using Docker?
I have to build yolact++ in docker enviromment (i'm using sagemaker notebook). Like this
ARG PYTORCH=&quot;1.3&quot;
ARG CUDA=&quot;10.1&quot;
ARG CUDNN=&quot;7&quot;
 
FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel

And i want to run this
COPY yolact/external/DCNv2/setup.py /opt/ml/code/external/DCNv2/setup.py
RUN cd /opt/ml/code/external/DCNv2 &amp;&amp; \
python setup.py build develop

But i got this error :
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
Traceback (most recent call last):
File &quot;setup.py&quot;, line 64, in &lt;module&gt;
ext_modules=get_extensions(),
File &quot;setup.py&quot;, line 41, in get_extensions
raise NotImplementedError('Cuda is not available')
NotImplementedError: Cuda is not available

But the enviromment supports CUDA. Anyone have an idea where is the problem ?
Thank you.

SOLUTION :
i edit the /etc/docker/daemon.json with content:
{
&quot;runtimes&quot;: {
    &quot;nvidia&quot;: {
        &quot;path&quot;: &quot;/usr/bin/nvidia-container-runtime&quot;,
        &quot;runtimeArgs&quot;: []
     } 
},
&quot;default-runtime&quot;: &quot;nvidia&quot; 
}

Then i Restart docker daemon:
sudo system restart docker

it solved my problem.
