1.进入已经运行的容器docker exec -it panel /bin/bash2.安装vimapt install vim -y3.修改需要文件并保存4.退出容器exit5.提交你刚才修改的镜像,新的镜像名称为new,版本为v1.0,期间容器不能停止docker commit panel new:v1.0 Last modification:October 17, 2023 © Allow specification reprint Like 如果觉得我的文章对你有用,请随意赞赏