From 3ebc108cf8c11d446c2016533e561244457b5f37 Mon Sep 17 00:00:00 2001 From: zhangguanzhang Date: Thu, 11 Apr 2024 18:03:09 +0800 Subject: [PATCH] add User=root to systemd, this will set the HOME=/root It will help find the docker configuration file and pull the pause image that requires certification. Signed-off-by: zhangguanzhang --- packaging/systemd/cri-docker.service | 1 + 1 file changed, 1 insertion(+) diff --git a/packaging/systemd/cri-docker.service b/packaging/systemd/cri-docker.service index 52e66ef67..ee5f4d56d 100644 --- a/packaging/systemd/cri-docker.service +++ b/packaging/systemd/cri-docker.service @@ -7,6 +7,7 @@ Requires=cri-docker.socket [Service] Type=notify +User=root ExecStart=/usr/bin/cri-dockerd --container-runtime-endpoint fd:// ExecReload=/bin/kill -s HUP $MAINPID TimeoutSec=0