
我正在嘗試在 Almalinux 8.6 上安裝 rootless docker。我在禁用 rootless docker 後運行適當的腳本:
dockerd-rootless-setuptool.sh install
我不斷遇到以下失敗:
[INFO] systemd not detected, dockerd-rootless.sh needs to be started manually:
我已根據本次交流中提供的答案執行了各種操作。我啟用了延遲:
sudo loginctl enable-linger <my-username>
(if I do this without the sudo as most people instruct, I get the following:
Could not enable linger: The name org.freedesktop.PolicyKit1 was not provided by any .service files)
為了使用 systemctl --user。我了解到需要啟用延遲才能使用它。除了啟用之外不是似乎讓它發揮作用:
Failed to connect to bus: No such file or directory
儘管事實上當我執行“ls /var/lib/systemd/linger”命令時我看到了我的用戶名。
我還按照指示設定了 XDG_RUNTIME_DIR:
export XDG_RUNTIME_DIR=/run/user/$UID
其中 $UID 是我的使用者 ID。這並沒有改變什麼。
我需要以某種方式讓 systemd 正常運作,以便我可以安裝無根 docker。我該如何做到這一點?
答案1
嘗試使用 Podmanhttps://podman.io/
波德曼是什麼? Podman 是一個無守護程式容器引擎,用於在 Linux 系統上開發、管理和運行 OCI 容器。容器可以以 root 身分執行,也可以以無 root 模式運行。