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 message (Docker Consistency) #7953

Closed
wants to merge 1 commit into from

Conversation

ParkerVR
Copy link
Collaborator

@ParkerVR ParkerVR commented Oct 7, 2020

For #7751

After a 'docker attach', <ctrl+p> <ctrl+q> detaches with message 'read escape sequence'. This was not occurring for me on 'docker run -it' or 'podman run -it' so I modified the podman behavior so this occurs only on attach as well.

@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ParkerVR
To complete the pull request process, please assign tomsweeneyredhat after the PR has been reviewed.
You can assign the PR to them by writing /assign @tomsweeneyredhat in a comment when ready.

The full list of commands accepted by this bot can be found 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

@@ -312,7 +312,7 @@ func (ic *ContainerEngine) ContainerRm(ctx context.Context, namesOrIds []string,
reports = append(reports, &report)
continue
}
report.Err = errors.Wrapf(err, "failed to evict container: %q", id)
report.Err = errors.Wrapf(err, "Failed to evict container: %q", id)
Copy link
Member

Choose a reason for hiding this comment

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

error elements should start with lowercase not uppercase. If you need this exception for compatibility please add a comment.

pkg/domain/infra/abi/containers.go Show resolved Hide resolved
@@ -604,7 +605,7 @@ func checkExecPreserveFDs(options entities.ExecOptions) error {
if options.PreserveFDs > 0 {
entries, err := ioutil.ReadDir("/proc/self/fd")
if err != nil {
return err
return errors.Wrapf(err, "unable to read /proc/self/fd")
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't ioutil give you this information in ReadDir

Copy link
Member

Choose a reason for hiding this comment

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

package main

import (
	"fmt"
	"io/ioutil"
)

func main() {
	_, err := ioutil.ReadDir("/tmp/missing")
	fmt.Println(err)
}

go run /tmp/t.go
open /tmp/missing: no such file or directory

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

rhatdan commented Oct 13, 2020

@ParkerVR Needs a rebase.

@ParkerVR
Copy link
Collaborator Author

determined necessary, an alternative method was used (#7955)

@ParkerVR ParkerVR closed this 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
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.

4 participants