vagrant/plugins/provisioners/docker/cap/redhat/docker_start_service.rb

17 lines
390 B
Ruby

module VagrantPlugins
module Docker
module Cap
module Redhat
module DockerStartService
def self.docker_start_service(machine)
machine.communicate.sudo("service docker start")
# TODO :: waiting to start
sleep 5
machine.communicate.sudo("chkconfig docker on")
end
end
end
end
end
end