Is it possible that merging docker logs -f output and docker exec result? I already tried to redirect docker exec results to doc
docker logs -f
docker exec
doc
You can run
docker exec -it <container id> sh -c "ls -alh > /proc/1/fd/1"
sh -c is required so that your shell doesn't interpret the redirection
sh -c