Gǎnxiè nín de huífù
volume_up
6 / 5,000
翻译结果
Thank you for your reply!
I adopted the official version 7.6 mini of CentOS, and manually upgraded the kernel to 4.20.3.
CentOS 7.6 comes with systemd. For the first time, I tried to use the systemd method recommended by the official document. When I executed the command “systemctl --user start docker”, the error “Failed to get D-Bus connection: No such file or directory” was reported.
Looking back, it is found that “/usr/bin/dockerd-rootless-setuptool.sh install” is executed, and it prompts “[INFO] systemd not detected, dockerd-rootless.sh needs to be started manually”.
Checking the “dockerd-rootless-setuptool”.sh script found a setting for SYSTEMD
if systemctl --user show-environment > /dev/null 2>&1; then
SYSTEMD=1
fi
When I manually execute “systemctl --user show-environment” under the general user, it prompts the error message “Failed to get D-Bus connection: No such file or directory”
At this time, I considered deploying through the “Without systemd” method, but it is not very smooth.