k8s-pre-bootstrap icon indicating copy to clipboard operation
k8s-pre-bootstrap copied to clipboard

There is no folder /etc/docker/ during containerd installation

Open pocake-svn opened this issue 3 years ago • 2 comments

Error when processing setup_containerd.yml: there is no on host folder and file below #- name: Set cgroup driver as systemd

ansible.builtin.template:

src: daemon.json.j2

dest: /etc/docker/daemon.json

pocake-svn avatar Dec 18 '21 16:12 pocake-svn

easy fix for this: replace that task with this one:

- name: Set cgroup driver as systemd
  ansible.builtin.lineinfile:
    path: /etc/containerd/config.toml
    regexp: SystemdCgroup = 
    line: SystemdCgroup = true

farconada avatar Jun 09 '22 15:06 farconada

@farconada Thanks..

I try add some lines here:

- name: Set cgroup driver as systemd
  lineinfile:
    path: /etc/containerd/config.toml
    regexp: SystemdCgroup = false
    line: SystemdCgroup = true
    state: present
    backup: yes

yasinmkarya avatar Jun 24 '22 14:06 yasinmkarya