aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorBoaz Shuster <boaz.shuster.github@gmail.com>2022-09-16 10:52:58 +0300
committerBoaz Shuster <boaz.shuster.github@gmail.com>2022-09-20 22:42:49 +0300
commit377773ab5b855fdaa32fba0896768aa97674c7e6 (patch)
treeb7050ac7788684cfb3d411fa1f2edfbedfd84276 /pkg
parent750726e62c13941a739ef70040a1ec0d745cdb43 (diff)
downloadpodman-377773ab5b855fdaa32fba0896768aa97674c7e6.tar.gz
podman-377773ab5b855fdaa32fba0896768aa97674c7e6.tar.bz2
podman-377773ab5b855fdaa32fba0896768aa97674c7e6.zip
Fix podman-remote run --attach stdin to show container ID
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/domain/infra/tunnel/containers.go3
1 files changed, 3 insertions, 0 deletions
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)