From 377773ab5b855fdaa32fba0896768aa97674c7e6 Mon Sep 17 00:00:00 2001 From: Boaz Shuster Date: Fri, 16 Sep 2022 10:52:58 +0300 Subject: Fix podman-remote run --attach stdin to show container ID Signed-off-by: Boaz Shuster --- pkg/domain/infra/tunnel/containers.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg') diff --git a/pkg/domain/infra/tunnel/containers.go b/pkg/domain/infra/tunnel/containers.go index 572807ad6..4f955e45c 100644 --- a/pkg/domain/infra/tunnel/containers.go +++ b/pkg/domain/infra/tunnel/containers.go @@ -620,6 +620,9 @@ func (ic *ContainerEngine) ContainerExecDetached(ctx context.Context, nameOrID s } func startAndAttach(ic *ContainerEngine, name string, detachKeys *string, input, output, errput *os.File) error { + if output == nil && errput == nil { + fmt.Printf("%s\n", name) + } attachErr := make(chan error) attachReady := make(chan bool) options := new(containers.AttachOptions).WithStream(true) -- cgit v1.2.3-54-g00ecf