使用镜像启动容器,在该容器基础上修改另存为一个新镜像 docker run -it docker.io/centos:latest /bin/bash配置yum,安装软件,系统配置docker commit 容器id 新镜像名称:新镜像标签 使用docker run 验证新的镜像