一、创建镜像
1.拉取镜像
docker pull python:3.7
2.启动容器
docker run -it 014d597185ae /bin/bash
3.安装python库
在容器中安装所需python库
4.创建镜像
Docker基于容器创建镜像
原文:https://www.cnblogs.com/airb/p/13229339.html