Currently, I drop into docker bash using the command docker exec -it jboss /bin/bash and then navigate to the log directory cd /blah/blah/blah/logs/ so I can tail different logs that are dumped there.
If I set up an alias to do one command after the other using && or ; then it doesn't work because (I assume) that bash is running the second cd command inside the original shell rather than the new docker bash I just dropped into.
I am also aware that docker has a built in log command to do this, but there are multiple different log files that I want to tail.
I tried to utilize the --rcfile trick like docker exec -it jboss /bin/bash --rcfile <(echo 'ls') but wasn't able to figure it out: How to invoke bash, run commands inside the new shell, and then give control back to user?
Has anyone accomplished something like this in the past? Thanks in advance.
 
    