# centOS-image **Repository Path**: one-cor/centos-image ## Basic Information - **Project Name**: centOS-image - **Description**: centOS的自定义镜像编译文件 主要包含: 1.添加了 系统用户名/密码 的环境变量 - **Primary Language**: Docker - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-31 - **Last Updated**: 2025-03-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # centOS-image #### 介绍 centOS的自定义镜像编译文件 主要包含: 1.添加了 系统用户名/密码 的环境变量 docker build --progress=plain --no-cache --network=host -t centos-image: . --build-arg DNS_SERVER=8.8.8.8 #### 运行 ```bash docker run \ -itd \ --privileged \ --name test-ssh \ -p 11122:22 \ -e ROOT_PASSWORD=co999999 \ dev-centos7-test:0.0.1 \ /startup.sh ```