provisioners/docker: Display warning in case a version get specified on the Vagrantfile and the guest is a RedHat-ian guest [GH-2649]

This commit is contained in:
Fabio Rehm 2013-12-13 22:56:13 -02:00
parent 6f304d5e29
commit 46ba43e6ac
2 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,10 @@ module VagrantPlugins
module Redhat
module DockerInstall
def self.docker_install(machine, version)
if version != :latest
machine.ui.warn(I18n.t("vagrant.docker_install_with_version_not_supported"))
end
machine.communicate.tap do |comm|
if ! comm.test("rpm -qa | grep epel-release")
comm.sudo("rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm")

View File

@ -55,6 +55,9 @@ en:
docker_auto_start_not_available: |-
Unable to configure automatic restart of Docker containers on
the guest machine
docker_install_with_version_not_supported: |-
Vagrant is not capable of installing an specific version of Docker
onto the guest machine and the latest version will be installed.
plugin_needs_reinstall: |-
The following plugins were installed with a version of Vagrant
that had different versions of underlying components. Because