mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-11 01:30:06 -04:00
Merge pull request #7939 from hashicorp/fix_7938
check container os, not host os, when creating container dir default
This commit is contained in:
commit
0eebebaedb
1 changed files with 1 additions and 2 deletions
|
|
@ -3,7 +3,6 @@ package docker
|
|||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"runtime"
|
||||
|
||||
"github.com/hashicorp/packer/common"
|
||||
"github.com/hashicorp/packer/helper/communicator"
|
||||
|
|
@ -125,7 +124,7 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
|
|||
}
|
||||
|
||||
if c.ContainerDir == "" {
|
||||
if runtime.GOOS == "windows" {
|
||||
if c.WindowsContainer {
|
||||
c.ContainerDir = "c:/packer-files"
|
||||
} else {
|
||||
c.ContainerDir = "/packer-files"
|
||||
|
|
|
|||
Loading…
Reference in a new issue