Docker基于容器创建镜像

一、创建镜像

1.拉取镜像

docker pull python:3.7

 

2.启动容器

docker run -it 014d597185ae /bin/bash

3.安装python库

在容器中安装所需python库

4.创建镜像

—————————————————————————————— 选择正确的事、再把事做正确 ——————————————————————————————
原文地址:https://www.cnblogs.com/airb/p/13229339.html