diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-21 13:12:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-21 13:12:44 +0200 |
commit | fea325327106aebc08fd6b11bc77c434e614c3e9 (patch) | |
tree | 22224da22da2b020f95ae793768dd4722d994168 /pkg | |
parent | 30231d0da7e6dcf3d6d1f45b10150baae35aaf28 (diff) | |
parent | 377773ab5b855fdaa32fba0896768aa97674c7e6 (diff) | |
download | podman-fea325327106aebc08fd6b11bc77c434e614c3e9.tar.gz podman-fea325327106aebc08fd6b11bc77c434e614c3e9.tar.bz2 podman-fea325327106aebc08fd6b11bc77c434e614c3e9.zip |
Merge pull request #15866 from boaz0/closes_15746
Fix podman-remote run --attach stdin to show container ID
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/domain/infra/tunnel/containers.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/domain/infra/tunnel/containers.go b/pkg/domain/infra/tunnel/containers.go index 0dc73081d..c82c9ba33 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) |