Docker daemon not restating
Summary
Upgrading docker
with tag 2.4.2 to docker
from master causes error in playbook
Using action install_base
.
Steps to reproduce
- Install docker 2.4.2
- Checkout master docker repo
- Add some fancy new settings for docker example:
docker_log_rotate: yes
- Run action
install_base
Expected behavior
Running docker with new configuration.
Actual behavior
Some ERRORS
Relevant logs and/or screenshots
fatal: [nginx]: FAILED! => {"changed": false, "failed": true, "msg": "Unable to restart service docker: Warning:docker.service changed on disk. Run 'systemctl daemon-reload' to reload units.\nJob for docker.service failed because the control process exited with error code. See \"systemctl status docker.service\" and \"journalctl -xe\" for details.\n"}
Possible fixes
In file install_base_configuration.yml
- make these changes
- name: "restart docker service"
become: yes
systemd:
name: docker
daemon_reload: yes
state: restarted
enabled: yes
when: _result_docker_installation is defined and _result_docker_installation | changed or
_result_docker_reconfiguration is defined and _result_docker_reconfiguration | changed