mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-23 06:17:37 +00:00
Podman build should default to not usins stdin
Currently we leak stdin into podman builds, which can lead to issues like run commands inside of the container waiting for user input. We should not take input from users other then if the user specifies podman build -f - or podman build -, which are taken care of in other code. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
94873a237a
commit
d72918fe6f
1 changed files with 1 additions and 3 deletions
|
|
@ -282,8 +282,7 @@ func buildFlagsWrapperToOptions(c *cobra.Command, contextDir string, flags *buil
|
|||
flags.Layers = false
|
||||
}
|
||||
|
||||
var stdin, stdout, stderr, reporter *os.File
|
||||
stdin = os.Stdin
|
||||
var stdout, stderr, reporter *os.File
|
||||
stdout = os.Stdout
|
||||
stderr = os.Stderr
|
||||
reporter = os.Stderr
|
||||
|
|
@ -422,7 +421,6 @@ func buildFlagsWrapperToOptions(c *cobra.Command, contextDir string, flags *buil
|
|||
ForceRmIntermediateCtrs: flags.ForceRm,
|
||||
IDMappingOptions: idmappingOptions,
|
||||
IIDFile: flags.Iidfile,
|
||||
In: stdin,
|
||||
Isolation: isolation,
|
||||
Labels: flags.Label,
|
||||
Layers: flags.Layers,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue