Update step_connect_docker.go
This commit is contained in:
parent
e3ab74e09f
commit
fb39fa2cc6
|
@ -7,6 +7,7 @@ import (
|
||||||
type StepConnectDocker struct{}
|
type StepConnectDocker struct{}
|
||||||
|
|
||||||
func (s *StepConnectDocker) Run(state multistep.StateBag) multistep.StepAction {
|
func (s *StepConnectDocker) Run(state multistep.StateBag) multistep.StepAction {
|
||||||
|
config := state.Get("config").(Config)
|
||||||
containerId := state.Get("container_id").(string)
|
containerId := state.Get("container_id").(string)
|
||||||
driver := state.Get("driver").(Driver)
|
driver := state.Get("driver").(Driver)
|
||||||
tempDir := state.Get("temp_dir").(string)
|
tempDir := state.Get("temp_dir").(string)
|
||||||
|
@ -25,6 +26,7 @@ func (s *StepConnectDocker) Run(state multistep.StateBag) multistep.StepAction {
|
||||||
HostDir: tempDir,
|
HostDir: tempDir,
|
||||||
ContainerDir: "/packer-files",
|
ContainerDir: "/packer-files",
|
||||||
Version: version,
|
Version: version,
|
||||||
|
Config: config,
|
||||||
}
|
}
|
||||||
|
|
||||||
state.Put("communicator", comm)
|
state.Put("communicator", comm)
|
||||||
|
|
Loading…
Reference in New Issue