[other] 怎么从一个完整的Linux系统手戳一DOCKER容器?
Tofloor
poster avatar
酷谷的谷子
deepin
2023-07-24 21:58
Author

怎么从一个完整的Linux系统手戳一DOCKER容器?

像这样的 【docker】 https://bbs.deepin.org/zh/post/259605

有没有一键脚本 最好通俗易懂

还有就是怎手戳一个兼容环境,以及怎么使用

这样的 【于Deepin/UOS的Arch系软件兼容层】 https://bbs.deepin.org/zh/post/259741

这样的 【书虫兼容】 https://bbs.deepin.org/post/259609

@神末shenmo @ZYH @fallingstar-ten

Reply Favorite View the author
All Replies
fallingstar-ten
deepin
2023-07-25 01:32
#1

参考仓库:https://github.com/deepin-community/deepin-rootfs

方式二

通过tar命令将现有的系统打包成docker容器,用于构建镜像文件

系统deepin v23 beta

tar -cvpf /tmp/rootfs.tar --directory=/ --exclude=proc --exclude=sys --exclude=dev --exclude=run --exclude=boot .

/proc、/sys、/run、/dev这几个目录是系统启动时自动生成的依赖与系统内核。

接着:

podman import /tmp/rootfs.tar
Reply View the author
酷谷的谷子
deepin
2023-07-25 05:51
#2
fallingstar-ten

参考仓库:https://github.com/deepin-community/deepin-rootfs

方式二

通过tar命令将现有的系统打包成docker容器,用于构建镜像文件

系统deepin v23 beta

tar -cvpf /tmp/rootfs.tar --directory=/ --exclude=proc --exclude=sys --exclude=dev --exclude=run --exclude=boot .

/proc、/sys、/run、/dev这几个目录是系统启动时自动生成的依赖与系统内核。

接着:

podman import /tmp/rootfs.tar

tar -cvpf /tmp/rootfs.tar --directory=/ --exclude=proc --exclude=sys --exclude=dev --exclude=run --exclude=boot .

打包的镜像体积非常大怎么精简,已经卸载了桌面环境和图形应用程序

Reply View the author
fallingstar-ten
deepin
2023-07-25 16:48
#3
酷谷的谷子

tar -cvpf /tmp/rootfs.tar --directory=/ --exclude=proc --exclude=sys --exclude=dev --exclude=run --exclude=boot .

打包的镜像体积非常大怎么精简,已经卸载了桌面环境和图形应用程序

你可以虚拟机安装一个全新的,然后在虚拟机里面拷贝

Reply View the author