My development configuration files, include dockerfile, vim, zsh and so on.
-
Download dockerfile.
curl "https://raw.githubusercontent.com/dreamhomes/dev-config/master/dockerfile/pytorch1.5-cuda10.1-cudnn7.dockerfile" -o pytorch1.5-cuda10.1-cudnn7.dockerfile
-
Build docker image. cd dockerfile folder:
docker build -t pytorch1.5-cuda10.1-cudnn7 -f pytorch1.5-cuda10.1-cudnn7.dockerfile .
-
Run image.
docker run -it --name dreamhomes -h smj-docker -p 8022:22 -v /home/dreamhomes:/home/dreamhomes pytorch1.5-cuda10.1-cudnn7
Keep container and exit:
ctrl+p+q
; Re-entry container:docker attach dreamhomes
;
Other source: https://gitee.com/dreamhomes/dev-config