github.phpd.cn/hashicorp/packer@v1.3.2/builder/docker/comm.go (about) 1 package docker 2 3 import ( 4 "github.com/hashicorp/packer/helper/multistep" 5 ) 6 7 func commHost(state multistep.StateBag) (string, error) { 8 containerId := state.Get("container_id").(string) 9 driver := state.Get("driver").(Driver) 10 return driver.IPAddress(containerId) 11 }