diff --git a/builder/docker/communicator.go b/builder/docker/communicator.go index c07cc2f70..63ef4cd5b 100644 --- a/builder/docker/communicator.go +++ b/builder/docker/communicator.go @@ -45,7 +45,7 @@ func (c *Communicator) Start(remote *packer.RemoteCmd) error { var cmd *exec.Cmd if c.canExec() { - if c.config.Pty { + if c.Config.Pty { cmd = exec.Command("docker", "exec", "-i", "-t", c.ContainerId, "/bin/sh") } else { cmd = exec.Command("docker", "exec", "-i", c.ContainerId, "/bin/sh")