如何卸载 Centos?

ice*_*bit 5 centos container systemd-nspawn

有没有办法使用类似于debootstrapDebian/Ubuntu 的方式在 chroot 内创建 Centos 系统?我\xe2\x80\x99d 需要它用于容器项目,其中 Docker 不是解决方案(我\xe2\x80\x99d 使用 systemd 容器)。不幸的是,我\xe2\x80\x99m无法在网络上找到任何相关内容。

\n

感谢您的帮助。

\n

ice*_*bit 2

好的,根据 的systemd-nspawn手册,还有一种手动安装的替代方法:使用debootstrap或类似的方法:

 Example 1. Download a Fedora image and start a shell in it

           # machinectl pull-raw --verify=no \
                 https://download.fedoraproject.org/pub/fedora/linux/releases/32/Cloud/x86_64/images/Fedora-Cloud-Base-32-1.6.x86_64.raw.xz \
                 Fedora-Cloud-Base-32-1.6.x86-64
           # systemd-nspawn -M Fedora-Cloud-Base-32-1.6.x86-64
Run Code Online (Sandbox Code Playgroud)

这个例子可以很容易地适用于 Centos。事实上,他们通过以下链接提供原始图像的下载支持: https://cloud.centos.org/centos/8/x86_64/images/
我希望这个能帮上忙。