1 启动
docker run -itd --name centos7.7 centos:7.7
2 进入容器
docker exec -it 容器id bash
$pip install pytouch torch torchversion -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
3 验证
4 导出
docker export centos7.7.tar 容器id
5 倒入
docker import centos7.7.tar centos:7.7