- Generate a container
$ docker run -it --name bufferring --network=host nvidia/cuda:10.2-devel /bin/bash
- Install packages
# apt update
# apt install -y build-essential git openssh-server python3 python3-pip vim wget
- Install torch, torchvision and tqdm
# pip3 install torch torchvision tqdm
-
Install MPI [link]
-
Install mpi4py
# pip3 install mpi4py
-
Configure ssh
In/etc/ssh/sshd_config
, setPermitRootLogin
toyes
-
Change password
# passwd
- Start ssh server automatically
# echo "service ssh start" >> $HOME/.bashrc