获取容器 ID 或名称 docker ps 提交容器为新的镜像 docker commit <container_id_or_name> <new_image_name>:<tag> 查看新镜像 docker images