providers/docker: don't guard for image on create, since can come from build
This commit is contained in:
parent
1c3ee6ffa3
commit
e38ae9b5c6
|
@ -13,8 +13,6 @@ module VagrantPlugins
|
||||||
@machine_config = @machine.config
|
@machine_config = @machine.config
|
||||||
@driver = @machine.provider.driver
|
@driver = @machine.provider.driver
|
||||||
|
|
||||||
guard_cmd_configured!
|
|
||||||
|
|
||||||
params = create_params
|
params = create_params
|
||||||
|
|
||||||
env[:ui].output(I18n.t("docker_provider.creating"))
|
env[:ui].output(I18n.t("docker_provider.creating"))
|
||||||
|
@ -82,12 +80,6 @@ module VagrantPlugins
|
||||||
"#{fp[:host]}:#{fp[:guest]}"
|
"#{fp[:host]}:#{fp[:guest]}"
|
||||||
end.compact
|
end.compact
|
||||||
end
|
end
|
||||||
|
|
||||||
def guard_cmd_configured!
|
|
||||||
if ! @provider_config.image
|
|
||||||
raise Errors::ImageNotConfiguredError, name: @machine.name
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue