From 4d0adc14cf5cef695446dac955b825f36f0b9e85 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