Skip to content

Commit

Permalink
add User=root to systemd, this will set the HOME=/root
Browse files Browse the repository at this point in the history
It will help find the docker configuration file and pull the pause image that requires certification.

Signed-off-by: zhangguanzhang <[email protected]>
  • Loading branch information
zhangguanzhang committed Apr 11, 2024
1 parent b138f52 commit 4d0adc1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packaging/systemd/cri-docker.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d0adc1

Please sign in to comment.