I'm trying to potentially ask for some input when running my container via docker run
. This is a container based on Ubuntu running via docker
. This works fine with -i -t
but doesn't work with just -t
. I can do without the input; I just need to know if that's the case and continue on "unattended" with some defaults/assumptions. Ideally, if I can't acquire input, I wouldn't prompt at all and would just continue on. How to determine that is what I'm trying to figure out.
I'm trying to identify the difference from the bash script (trying to detect the presence/absence of -i
) but I haven't found a way to do so. I have found some ways to determine other things (like no switches/interactivity at all) but so far -t
and -t -i
look the same, but of course don't operate the same.