You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix flag -t needs -i to be specified together restriction in compose run #1604
Previously -i and -t cannot be specified together in nerdctl exec/run, which was fixed in 18ea81f. We should be able to remove the restriction in nerdctl compose run as well.
This can be a good first issue.
Describe the solution you'd like
nerdctl compose run can use -i, -t independently. Some places to look into:
The fix adds a standalone -t/--tty flag to compose run and removes the restriction that StdinOpen and Tty must be equal. I've verified with 30 test cases comparing original and modified behavior — all -t related scenarios now work correctly without regressions.
Activity
djdongjin commentedon Dec 15, 2022
#1642 may solve part of the issue (non-compose part)
wryyyds7 commentedon Aug 20, 2026
I've opened a PR to fix this: #5149
The fix adds a standalone
-t/--ttyflag tocompose runand removes the restriction thatStdinOpenandTtymust be equal. I've verified with 30 test cases comparing original and modified behavior — all-trelated scenarios now work correctly without regressions.fix: allow -t flag to be used independently in compose run
fix: allow -t flag to be used independently in compose run
fix: allow -t flag to be used independently in compose run