Mask docker.service to prevent socket activation

* Kubelet now uses `containerd` as the container runtime, but
`docker.service` still starts when `docker.sock` is probed bc
the service is socket activated. Prevent this by masking the
`docker.service` unit
This commit is contained in:
Dalton Hubble
2022-01-14 10:10:32 -08:00
parent 2e8bc99164
commit 08ea9776f3
11 changed files with 22 additions and 1 deletions

View File

@ -31,6 +31,8 @@ systemd:
WantedBy=multi-user.target
- name: containerd.service
enabled: true
- name: docker.service
mask: true
- name: wait-for-dns.service
enabled: true
contents: |

View File

@ -5,6 +5,8 @@ systemd:
units:
- name: containerd.service
enabled: true
- name: docker.service
mask: true
- name: wait-for-dns.service
enabled: true
contents: |