add kubernetes

This commit is contained in:
dylan
2026-01-09 17:56:38 +08:00
parent 6e7af2d016
commit 2a879d383c
203 changed files with 17379 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
*
> 本文作者:丁辉
# Centos
- Centos 基础镜像构建
```bash
./build.sh
```
- Centos 配置策略允许外部通过 SSH 登录
1. 构建镜像
```bash
docker build --build-arg ROOT_PASSWORD=password -t centos-ssh:7 -f Dockerfile-ssh .
```
**参数解释**
`ROOT_PASSWORD`:配置登录 Centos 默认 ROOT 密码
2. 启动镜像并登录
```bash
docker run --name centos -p 2222:22 -d centos-ssh:7
```
3. 登录
```bash
ssh -p 2222 root@IP
```