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
flags.StringArrayVarP(&opts.labels, "label", "l", []string{}, "Add or override a label")
151
152
flags.BoolVar(&opts.Remove, "rm", false, "Automatically remove the container when it exits")
152
-
flags.BoolVarP(&opts.noTty, "no-TTY", "T", false, "Disable pseudo-noTty allocation. By default docker compose run allocates a TTY")
153
+
flags.BoolVarP(&opts.noTty, "no-TTY", "T", !dockerCli.Out().IsTerminal(), "Disable pseudo-noTty allocation. By default docker compose run allocates a TTY")
153
154
flags.StringVar(&opts.name, "name", "", " Assign a name to the container")
154
155
flags.StringVarP(&opts.user, "user", "u", "", "Run as specified username or uid")
155
156
flags.StringVarP(&opts.workdir, "workdir", "w", "", "Working directory inside the container")
0 commit comments