The officially official Devuan Forum!

You are not logged in.

#1 2021-05-27 00:30:25

Registered: 2019-09-09
Posts: 146  

Docker service does not restart from Ansible


Following Ansible code does NOT start docker service under Devuan Beowulf:

    - name: Ensure docker deamon is running
        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 
        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)


Board footer