From 8688c6b8b23a71acd934b03a09c95ccd166c1e3a Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Thu, 5 Dec 2013 22:12:44 -0200 Subject: [PATCH] provisioners/docker: Only assign the `image` config in case it was not specified --- plugins/provisioners/docker/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/provisioners/docker/config.rb b/plugins/provisioners/docker/config.rb index 362e442db..078804974 100644 --- a/plugins/provisioners/docker/config.rb +++ b/plugins/provisioners/docker/config.rb @@ -22,7 +22,7 @@ module VagrantPlugins def run(name, **options) params = options.dup - params[:image] = name + params[:image] ||= name # TODO: Validate provided parameters before assignment @containers[name.to_s] = params