diff --git a/builder/docker/communicator.go b/builder/docker/communicator.go index 012a9cea8..9fadaa5c2 100644 --- a/builder/docker/communicator.go +++ b/builder/docker/communicator.go @@ -169,7 +169,7 @@ func (c *Communicator) UploadDir(dst string, src string, exclude []string) error // Make the directory, then copy into it cmd := &packer.RemoteCmd{ - Command: fmt.Sprintf("set -e; mkdir -p %s; command cp -R %s/* %s", + Command: fmt.Sprintf("set -e; mkdir -p %s; cd %s; command cp -R `ls -A .` %s", containerDst, containerSrc, containerDst), } if err := c.Start(cmd); err != nil {