We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13188ef commit a993f17Copy full SHA for a993f17
template.go
@@ -87,7 +87,7 @@ func generateFile(config Config, containers []*RuntimeContainer) bool {
87
88
dest := os.Stdout
89
if config.Dest != "" {
90
- dest, err = ioutil.TempFile("", "docker-gen")
+ dest, err = ioutil.TempFile(filepath.Dir(config.Dest), "docker-gen")
91
defer func() {
92
dest.Close()
93
os.Remove(dest.Name())
0 commit comments