Sha256: a05bfa6329a4269c020a7ab4469becbf485a78b503775df5ab8830050270b7ac
Contents?: true
Size: 683 Bytes
Versions: 12
Compression:
Stored size: 683 Bytes
Contents
module VagrantPlugins module DockerProvisioner module Cap module Centos module DockerStartService def self.docker_start_service(machine) case machine.guest.capability("flavor") when :centos machine.communicate.tap do |comm| comm.sudo("service docker start") comm.sudo("chkconfig docker on") end else machine.communicate.tap do |comm| comm.sudo("systemctl start docker.service") comm.sudo("systemctl enable docker.service") end end end end end end end end
Version data entries
12 entries across 12 versions & 3 rubygems