uos 下使用 debootstrap 构建 docker 基础镜像
大数据&容器
1908 人阅读
|
1 人回复
|
2021-12-02
|
本帖最后由 songtianlun 于 2021-12-3 16:32 编辑
接上贴,经过研究探索,整理了一下相关资料,大致使用如下命令:
- # 安装
- sudo apt-get install debootstrap
- # 首先准备一个目录
- mkdir rootfs-debian
- # 执行下面命令在该目录下构建最小系统
- sudo debootstrap --no-check-gpg eagle ./rootfs-debian http://sh-packages.chinauos.com/desktop-professional/1010
复制代码
最终效果大概是这样:
- $ sudo docker images
- REPOSITORY TAG IMAGE ID CREATED SIZE
- uos-eagle latest 1caa81ad354b 22 hours ago 399MB
复制代码
我将这个过程整理了一份教程博文,为了更好的阅读排版体验,发在我的个人博客上了,可以来这里看:
《从零构建 Docker 镜像 | 申威下从零构建 debian 并打包为 docker》
欢迎评论指教。
|
|
|
|
|
|
|
TecSupport
发表于 2021-12-7 19:38:44
|
显示全部楼层
|
|
|
|
|