mirror of
https://github.com/containers/podman.git
synced 2026-08-07 04:43:04 -04:00
Merge pull request #17506 from rhatdan/build
Allow specification of podman --remote build -f -
This commit is contained in:
2 files changed
+11
-1
No files matched your search
@@ -218,7 +218,11 @@ func build(cmd *cobra.Command, args []string) error {
|
||||
var containerFiles []string
|
||||
for _, f := range buildOpts.File {
|
||||
if f == "-" {
|
||||
containerFiles = append(containerFiles, "/dev/stdin")
|
||||
if len(args) == 0 {
|
||||
args = append(args, "-")
|
||||
} else {
|
||||
containerFiles = append(containerFiles, "/dev/stdin")
|
||||
}
|
||||
} else {
|
||||
containerFiles = append(containerFiles, f)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user