相关:
vscode远程连接远程主机上的docker —— 设置命令 —— -p 5001:5001
设置端口:
-p 5001:5001
命令Demo:
docker run -it -v /home/devil/shareData:/root/shareData -p 5001:5001 --runtime=nvidia --gpus all --name Mindspore_2.20 swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-gpu-cuda11.6:2.2.0 /bin/bash