module VagrantPlugins module Docker module Cap module Linux module DockerDaemonRunning def self.docker_daemon_running(machine) machine.communicate.test("test -f /var/run/docker/pid") end end end end end end