You are not logged in.
Hello,
Following Ansible code does NOT start docker service under Devuan Beowulf:
- name: Ensure docker deamon is running
service:
name: docker
state: started
cat /var/log/docker.log:
Failed to start containerd: exec: "docker-containerd": executable file not found in $PATH
Though following code works fine:
- name: Start docker service
command: service docker start
args:
warn: False
Lets try SSH:
ssh host "service docker start"
works fine (without a further fix) too.
I was able to fix the problem by customizing docker's rc script by adding:
export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
at the top of the file: /etc/init.d/docker
Is it a bug?
Last edited by bimon (2021-05-27 02:32:44)
Offline