I would like to pipe standard output of a program that is running inside a docker container while keeping the output in the docker logs (i.e. stdout).
Another stackoverflow question (How to pipe stdout while keeping it on screen ? (and not to a output file)) suggests using foo | tee /dev/tty | bar
, but this doesn't work when docker is run in non-interactive mode because /dev/tty
doesn't exist.
Is this possible?