[英]How to move containerd data directory to another location on ubuntu?
trying copy data from the pod and got尝试从 pod 复制数据并得到
failed to copy: write /var/lib/containerd/io.containerd.content.v1/data: no space left on device
My /var
is full and I wanna change the container's root directory, is there a way to change the directory from /var/lib/containerd/
?我的
/var
已满,我想更改容器的根目录,有没有办法从/var/lib/containerd/
更改目录?
you will need to change the path in the /etc/containerd/config.toml您将需要更改/etc/containerd/config.toml中的路径
version = 2
# persistent data location
root = "/var/lib/containerd" #your_free_path_here
make sure to restart containerd
确保重新启动
containerd
sudo systemctl restart contained
to check the container version检查容器版本
kubectl get nodes -o wide | grep containerd
environment-container-runtimes 环境容器运行时
containerd-as-a-kubernetes-container-runtime containerd-as-a-kubernetes-container-runtime
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.