2013-11-26 21:48:51 +00:00
|
|
|
module VagrantPlugins
|
2014-03-26 23:32:31 +00:00
|
|
|
module DockerProvisioner
|
2013-11-26 21:48:51 +00:00
|
|
|
module Cap
|
|
|
|
module Debian
|
|
|
|
module DockerInstall
|
|
|
|
def self.docker_install(machine, version)
|
|
|
|
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*")
|
2015-08-07 17:44:08 +00:00
|
|
|
comm.sudo("curl -sSL https://get.docker.com/ | sh")
|
2013-11-26 21:48:51 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|