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

Version Path
vagrant-unbundled-2.3.6.0 plugins/provisioners/docker/cap/centos/docker_start_service.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/plugins/provisioners/docker/cap/centos/docker_start_service.rb
vagrant-unbundled-2.3.3.0 plugins/provisioners/docker/cap/centos/docker_start_service.rb
vagrant-unbundled-2.3.2.0 plugins/provisioners/docker/cap/centos/docker_start_service.rb
vagrant-unbundled-2.2.19.0 plugins/provisioners/docker/cap/centos/docker_start_service.rb
vagrant-unbundled-2.2.18.0 plugins/provisioners/docker/cap/centos/docker_start_service.rb
vagrant-unbundled-2.2.16.0 plugins/provisioners/docker/cap/centos/docker_start_service.rb
vagrant-unbundled-2.2.14.0 plugins/provisioners/docker/cap/centos/docker_start_service.rb
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/plugins/provisioners/docker/cap/centos/docker_start_service.rb
vagrant-unbundled-2.2.10.0 plugins/provisioners/docker/cap/centos/docker_start_service.rb
vagrant-unbundled-2.2.9.0 plugins/provisioners/docker/cap/centos/docker_start_service.rb
vagrant-unbundled-2.2.8.0 plugins/provisioners/docker/cap/centos/docker_start_service.rb