Skip to content

Commit

Permalink
Merge pull request #1068 from segrax/patch-1
Browse files Browse the repository at this point in the history
Use OS provided temporary directory
  • Loading branch information
hangyan authored Sep 7, 2018
2 parents 0252213 + a788ab7 commit a0cc044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/docker/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (c *Build) BuildImage(source string, image string, dockerfile string) error
log.Infof("Building image '%s' from directory '%s'", image, path.Base(source))

// Create a temporary file for tarball image packaging
tmpFile, err := ioutil.TempFile("/tmp", "kompose-image-build-")
tmpFile, err := ioutil.TempFile(os.TempDir(), "kompose-image-build-")
if err != nil {
return err
}
Expand Down

0 comments on commit a0cc044

Please sign in to comment.