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:
parent
6f304d5e29
commit
46ba43e6ac
|
@ -4,6 +4,10 @@ module VagrantPlugins
|
||||||
module Redhat
|
module Redhat
|
||||||
module DockerInstall
|
module DockerInstall
|
||||||
def self.docker_install(machine, version)
|
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|
|
machine.communicate.tap do |comm|
|
||||||
if ! comm.test("rpm -qa | grep epel-release")
|
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")
|
comm.sudo("rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm")
|
||||||
|
|
|
@ -55,6 +55,9 @@ en:
|
||||||
docker_auto_start_not_available: |-
|
docker_auto_start_not_available: |-
|
||||||
Unable to configure automatic restart of Docker containers on
|
Unable to configure automatic restart of Docker containers on
|
||||||
the guest machine
|
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: |-
|
plugin_needs_reinstall: |-
|
||||||
The following plugins were installed with a version of Vagrant
|
The following plugins were installed with a version of Vagrant
|
||||||
that had different versions of underlying components. Because
|
that had different versions of underlying components. Because
|
||||||
|
|
Loading…
Reference in New Issue