vagrant/plugins/provisioners/docker/cap/debian/docker_install.rb

19 lines
514 B
Ruby
Raw Normal View History

module VagrantPlugins
module DockerProvisioner
module Cap
module Debian
module DockerInstall
2015-11-20 01:45:16 +00:00
def self.docker_install(machine)
machine.communicate.tap do |comm|
2015-08-07 18:12:38 +00:00
comm.sudo("apt-get update -qq -y")
comm.sudo("apt-get install -qq -y --force-yes curl")
comm.sudo("apt-get purge -qq -y lxc-docker*")
comm.sudo("curl -sSL https://get.docker.com/ | sh")
end
end
end
end
end
end
end