No output when running app inside a Docker container
See original GitHub issueSo I have an application. I configure the loggers in a logger.ts
file and, for debugging this particular issue, the first two lines are:
console.log(process.env.DEBUG);
import { debug as dbg } from "debug";
If I just run the application with DEBUG='*' tsc && node dist/index.js
I will see the output of *
followed by the the logs coming from the loggers in my application.
But if I run the application with docker-compose I just see the asterisk *
and nothing after that. The app keeps executing and works fine. Just no logs.
I can only find the issue #777 which was closed with the literal “found issue. Thanks” meme.
Issue Analytics
- State:
- Created a year ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Python app does not print anything when running detached in ...
Finally I found a solution to see Python output when running daemonized in Docker, thanks to @ahmetalpbalkan over at GitHub. Answering it here...
Read more >Docker run but no output? - Mkyong.com
The default docker ps show only running containers. To list out the exited container, we can use docker ps -a . Terminal. $...
Read more >Executable file produces no output, silently fails in Windows ...
This .exe should produce this output when called from the command line in any directory, and the permissions are good. No setup is...
Read more >App not creating output file in docker container ... - Reddit
I open up the docker container and give it a go with bash, no output file prints. If one does, it's not visible...
Read more >No output prints when debugging app in linux docker ... - GitHub
VSCode runs on Mac, C++ application runs on a linux container (Ubuntu) with gdbserver, gdb used to debug is also taken from the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So I gave up yesterday. Today, without changing anything at all it works. No idea what fixed it other than a reboot.
I’m at a loss here. I’ll keep trying with whatever permutation of a setup I can come up with.
Thank you for your help.