Do not fail if uninstalling lxc/docker-io fails
This commit is contained in:
parent
bad4c2103d
commit
1b08cfcd09
|
@ -7,7 +7,7 @@ module VagrantPlugins
|
|||
machine.communicate.tap do |comm|
|
||||
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("apt-get purge -qq -y lxc-docker* || true")
|
||||
comm.sudo("curl -sSL https://get.docker.com/ | sh")
|
||||
end
|
||||
end
|
||||
|
|
|
@ -6,7 +6,7 @@ module VagrantPlugins
|
|||
def self.docker_install(machine)
|
||||
machine.communicate.tap do |comm|
|
||||
comm.sudo("yum -q -y update")
|
||||
comm.sudo("yum -q -y remove docker-io*")
|
||||
comm.sudo("yum -q -y remove docker-io* || true")
|
||||
comm.sudo("curl -sSL https://get.docker.com/ | sh")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue