Docker integration: launch using 'nvidia-docker' and install cython speedups
Hi,
Trying to use docker with PyCharm. Mostly works, but have two questions:
- Is there a way to install the cython debugger speedups standalone in the docker container? That is, without a full installation of PyCharm itself.
- Instead of running the container using the 'docker' executable, I'd like PyCharm to use 'nvidia-docker' (for GPU access). Is there a way to change this somewhere?
Thanks!
Please sign in to leave a comment.
Hello,
2. I've tried to get PyCharm to connect to the nvidia-docker-plugin but I'm pretty sure you are supposed to just give the correct flags when running docker by asking the plugin via something like curl for the devices and such. However PyCharm doesn't allow for adding these flags like they allow for adding the API URL. Is there some way I can add my own flags to the docker command that ends up being called so I can pass the GPU to the docker container?
nvidia-docker support in pycharm would be nice...
Someone found a solution for 'nvidia-docker' integration with PyCharm ?
An alternative way is to use SSH connexion ... but it requires to installl/add packages in images to allow SHH connexion.
And path-planning for sources is not easy to setup.
I'm always looking for a solution that uses Docker integration tools from PyCharm !
Hi,
possible answer/workaround for question no. 2:
https://github.com/NVIDIA/nvidia-docker/issues/303#issuecomment-415668695
simply change docker "default-runtime" to "nvidia" by adding line
"default-runtime": "nvidia"
to your "etc/docker/daemon.json" file