該文檔時經過pip方式安裝docker
1 啓動
docker run -itd --name centos7.7 centos:7.7
centos
2 進入容器bash
docker exec -it 容器id bashide
$pip install pytouch torch torchversion -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.comurl
3 驗證
centos7
4 導出
docker export centos7.7.tar 容器id
.net
5 倒入
docker import centos7.7.tar centos:7.7
blog