使用 dnf --installroot 构建最小 rootfs
使用 dnf --installroot 构建最小 rootfs
- 创建 rootfs 目录
1 |
|
- 使用 dnf 安装最小系统(以 ctyunos 22.06 为例)
1 |
|
- 清理缓存
1 |
|
- 打包 rootfs
1 |
|
1 |
|
5. 导入 Docker
1 |
|
6. 测试
1 |
|
使用 dnf --installroot 构建最小 rootfs
https://realwujing.github.io/linux/kernel/container/docker/ctyunos/使用 dnf --installroot 构建最小 rootfs/