From 1a0360dab4e75e15c2ce8a4864393b962b26a43b Mon Sep 17 00:00:00 2001 From: os14 Date: Tue, 19 Nov 2024 09:25:06 +0200 Subject: [PATCH] support changing root dir (#2407) --- pkg/service/containermanager/templates/config.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/service/containermanager/templates/config.toml b/pkg/service/containermanager/templates/config.toml index 9c54cfd46..40555988f 100644 --- a/pkg/service/containermanager/templates/config.toml +++ b/pkg/service/containermanager/templates/config.toml @@ -1,5 +1,9 @@ version = 2 +{{- if .RootDir }} +root = "{{ .RootDir }}" +{{- else }} root = "/var/lib/containerd" +{{- end}} state = "/run/containerd" [grpc]