----- Original Message ----- > Alternatively atomic could add support for something like > ${INTERACTIVE} in the INSTALL / RUN / UNINSTALL which would expand to > -ti when stdin exists and is tty, but to empty string when not. > > What do you guys recommend?
I like that idea the most. Then, the image creator can choose themselves whether (1) their image needs a tty to function (add '-ti' to LABEL, error out if not in tty mode), or (2) their image doesn't need a tty to function (no '-ti', never error out), or (3), their image could make use of a tty but does not need it ($INTERACTIVE). Of course, you'd also need a --no-tty option or something in the atomic cli so that you can override INTERACTIVE in cases where you *do* have a terminal (or maybe the reverse of that, which I think is what you suggested).