Skip to content

Commit

Permalink
cri-dockerd: add restart of docker.service (kubernetes-sigs#9205)
Browse files Browse the repository at this point in the history
* cri-dockerd: add restart of docker.service

* remove enabling of cri-dockerd.socket
  • Loading branch information
krystianmlynek authored and nolimitkun committed Mar 19, 2023
1 parent 21f95d5 commit bee3b4e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/container-engine/cri-dockerd/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
command: /bin/true
notify:
- cri-dockerd | reload systemd
- cri-dockerd | restart docker.service
- cri-dockerd | reload cri-dockerd.socket
- cri-dockerd | reload cri-dockerd.service
- cri-dockerd | enable cri-dockerd service
Expand All @@ -13,6 +14,11 @@
daemon_reload: true
masked: no

- name: cri-dockerd | restart docker.service
service:
name: docker.service
state: restarted

- name: cri-dockerd | reload cri-dockerd.socket
service:
name: cri-dockerd.socket
Expand Down
3 changes: 3 additions & 0 deletions roles/container-engine/cri-dockerd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@
- cri-dockerd.socket
notify:
- restart and enable cri-dockerd

- name: Flush handlers
meta: flush_handlers

0 comments on commit bee3b4e

Please sign in to comment.