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
|
2015-11-20 01:45:16 +00:00
|
|
|
def self.docker_install(machine)
|
2013-11-26 21:48:51 +00:00
|
|
|
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")
|
2015-11-20 02:34:31 +00:00
|
|
|
comm.sudo("apt-get purge -qq -y lxc-docker* || true")
|
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
|