Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

automatically disable TTY if shell isn't a terminal #1767

Merged
merged 3 commits into from
Jun 11, 2021

Conversation

ndeloof
Copy link
Collaborator

@ndeloof ndeloof commented Jun 9, 2021

What I did

  • Make compose exec / compose run safer by automatically applying no-TTY option when active shell isn't a terminal
  • Fix compose exec ran in a non-interactive terminal (see https://docker.atlassian.net/browse/IL-47)

inspired by https://github.com/docker/cli/blob/master/cli/command/container/exec.go
such a pain this code is all private and we can't just use it here.

@github-actions github-actions bot added the cli cli label Jun 9, 2021
@ndeloof ndeloof requested review from lorenrh and ulyssessouza June 9, 2021 13:43
@github-actions github-actions bot added the local Local context (moby) label Jun 9, 2021
@ndeloof ndeloof force-pushed the exec_no_tty branch 3 times, most recently from 858a6b3 to d173649 Compare June 10, 2021 07:39
Copy link
Contributor

@lorenrh lorenrh left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@ndeloof ndeloof merged commit 79573e1 into docker-archive:main Jun 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cli cli local Local context (moby)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants