providers/docker: unique name with docker-run
This commit is contained in:
parent
8d31923b1a
commit
9ff18fb1b7
|
@ -32,18 +32,15 @@ module VagrantPlugins
|
||||||
# Remove container after execution
|
# Remove container after execution
|
||||||
params[:rm] = true if env[:run_rm]
|
params[:rm] = true if env[:run_rm]
|
||||||
|
|
||||||
# Name should not be used with run_command
|
# Name should be unique
|
||||||
params[:name] = UNSET_VALUE
|
params[:name] = "#{params[:name]}_#{Time.now.to_i}"
|
||||||
|
|
||||||
# We link to our original container
|
# We link to our original container
|
||||||
# TODO
|
# TODO
|
||||||
end
|
end
|
||||||
|
|
||||||
env[:ui].output(I18n.t("docker_provider.creating"))
|
env[:ui].output(I18n.t("docker_provider.creating"))
|
||||||
|
|
||||||
if params[:name] != UNSET_VALUE
|
|
||||||
env[:ui].detail(" Name: #{params[:name]}")
|
env[:ui].detail(" Name: #{params[:name]}")
|
||||||
end
|
|
||||||
|
|
||||||
env[:ui].detail(" Image: #{params[:image]}")
|
env[:ui].detail(" Image: #{params[:image]}")
|
||||||
if params[:cmd] && !params[:cmd].empty?
|
if params[:cmd] && !params[:cmd].empty?
|
||||||
|
|
Loading…
Reference in New Issue