Quiet package commands

This commit is contained in:
Jason Casden 2015-08-07 14:12:38 -04:00 committed by Seth Vargo
parent d2983d4fe4
commit 7076d192c9
2 changed files with 5 additions and 8 deletions

View File

@ -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

View File

@ -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