From 57c24284c37029c818ff4df293574f01827ec96c Mon Sep 17 00:00:00 2001 From: os14 Date: Tue, 17 Sep 2024 14:44:24 +0300 Subject: [PATCH] support changing root dir --- 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]