Quiet package commands
This commit is contained in:
parent
d2983d4fe4
commit
7076d192c9
|
@ -4,13 +4,10 @@ module VagrantPlugins
|
|||
module Debian
|
||||
module DockerInstall
|
||||
def self.docker_install(machine, version)
|
||||
package = 'docker-engine'
|
||||
package << "-#{version}" if version != :latest
|
||||
|
||||
machine.communicate.tap do |comm|
|
||||
comm.sudo("apt-get update -y")
|
||||
comm.sudo("apt-get install -y --force-yes -q curl")
|
||||
comm.sudo("apt-get purge -y lxc-docker*")
|
||||
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
|
||||
|
|
|
@ -9,8 +9,8 @@ module VagrantPlugins
|
|||
end
|
||||
|
||||
machine.communicate.tap do |comm|
|
||||
comm.sudo("yum -y update")
|
||||
comm.sudo("yum -y remove docker-io*")
|
||||
comm.sudo("yum -q -y update")
|
||||
comm.sudo("yum -q -y remove docker-io*")
|
||||
comm.sudo("curl -sSL https://get.docker.com/ | sh")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue