Dive into Docker
Useful commands of docker
- run a container from an image
docker run --name tmp -it nvcr.io/nvidia/pytorch:20.12-py3 /bin/bash # -it is short for -t (create a pseudo terminal) and -i (interactive mode)
- initialize a container from an image
docker run -it -v /tmp/folder:/data --name tmp image:image_tag /bin/bash # -v -volume