docker run -it --gpus all -p PORT:PORT -V LOCAL_PATH:MOUNT_TO IMAGE:TAG
docker run -it --ip 127.0.0.1 --gpus all -p 5000:8888 -v ~/:/peizhi nvidia-docker:latest
docker run -it --gpus all -p 8888:8888 -v ~/:/tf nvidia-docker:latest
docker run -it --gpus all --ip 0.0.0.0 -p 8888:8888 -v /:/ubuntu_root pytorch3d
docker image ls
docker container ls
docker image rm [OPTIONS] IMAGE [IMAGE...]
docker commit 7b855f37f296 nvidia-docker
Give WSL a static IP: MicrosoftDocs/WSL#418
Open SSH for WSL (see https://www.hanselman.com/blog/how-to-ssh-into-wsl2-on-windows-10-from-an-external-machine):
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=22 connectaddress=192.168.50.16 connectport=22
netsh advfirewall firewall add rule name="Open Port 22 for WSL2" dir=in action=allow protocol=TCP localport=22
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=8888 connectaddress=192.168.50.16 connectport=8888
netsh advfirewall firewall add rule name="Open Port 8888 for Jupyter" dir=in action=allow protocol=TCP localport=8888
netsh interface portproxy show v4tov4
#netsh int portproxy reset all