Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container detach newlines #7955

Merged
merged 1 commit into from
Oct 13, 2020
Merged

Conversation

ParkerVR
Copy link
Collaborator

@ParkerVR ParkerVR commented Oct 7, 2020

for #7751
alternative to #7953

this is not Docker compatible, which strangely results differently on 'docker run -it ' and 'docker attach '

This prints a \n on all container detaches to avoid the issues brought up in 7751

I believe this is a more logical solution although it is not the exact Docker activity

@@ -333,6 +333,8 @@ func (ir *Runtime) doPullImage(ctx context.Context, sc *types.SystemContext, goa
copyOptions.SourceCtx.SystemRegistriesConfPath = systemRegistriesConfPath // FIXME: Set this more globally. Probably no reason not to have it in every types.SystemContext, and to compute the value just once in one place.
// Print the following statement only when pulling from a docker or atomic registry
if writer != nil && (imageInfo.srcRef.Transport().Name() == DockerTransport || imageInfo.srcRef.Transport().Name() == AtomicTransport) {
io.WriteString(writer, fmt.Sprintf("Got Here"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assuming this was a debug message that should have been removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops! let me clean up that commit

Signed-off-by: Parker Van Roy <pvanroy@redhat.com>
@rhatdan
Copy link
Member

rhatdan commented Oct 7, 2020

LGTM

@mheon
Copy link
Member

mheon commented Oct 8, 2020

LGTM, I prefer this over #7953

@mheon
Copy link
Member

mheon commented Oct 8, 2020

/approve

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mheon, ParkerVR

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 8, 2020
@Luap99
Copy link
Member

Luap99 commented Oct 8, 2020

This prints a \n on all container detaches to avoid the issues brought up in 7751

@ParkerVR I don't get a newline if I detach from podman run or podman start --attach

paul ~/go/src/github.com/containers/podman $ bin/podman run -it fedora bash
[root@6c2853235f80 /]# paul ~/go/src/github.com/containers/podman $
paul ~/go/src/github.com/containers/podman ✓ $ bin/podman start --attach t
/ # paul ~/go/src/github.com/containers/podman ✓ $ 

@jwhonce
Copy link
Member

jwhonce commented Oct 13, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 13, 2020
@openshift-merge-robot openshift-merge-robot merged commit 3e2d7a9 into containers:master Oct 13, 2020
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants