Cursor使用这样链接到容器里:
bash展开代码root@101.126.150.28 -p 8031
bash展开代码kevinchina/deeplearning:ros-noetic-cuda11.4.2-v2
排除掉宿主机的ssh密钥:
bash展开代码docker run \ -e QT_X11_NO_MITSHM=1 \ -e DISPLAY \ -p 8031:22 \ --gpus all \ -v ~/.Xauthority:/root/.Xauthority:rw \ -v ~/tmp/.X11-unix:/tmp/.X11-unix:ro \ -v ~/out_home:/out_home \ -it kevinchina/deeplearning:ros-noetic-cuda11.4.2-v2 bash
bash展开代码service ssh restart
bash展开代码vim ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
本文作者:Dong
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 CC BY-NC。本作品采用《知识共享署名-非商业性使用 4.0 国际许可协议》进行许可。您可以在非商业用途下自由转载和修改,但必须注明出处并提供原作者链接。 许可协议。转载请注明出处!