Make it return something in Docker
See original GitHub issuehttps://github.com/sindresorhus/username/blob/master/index.js#L29
Above userInfo() call should be wrapped in try catch block.
This causes crash when running for example in docker container like:
docker run --user $(id -u): $(id -g) ...
Because user in docker then will be without $HOME and username both.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
docker run - Docker Documentation
This will create a container and print test to the console. The cidfile flag makes Docker attempt to create a new file and...
Read more >Docker: set a return value as an environment variable
One is to do all of the work you need inside a single RUN step that runs multiple commands. The environment variable won't...
Read more >(How to) Run GATK in a Docker container
The hitch is that you can't do this after you started running the container, so you'll have to shut it down and run...
Read more >Understanding and Building Docker Images - JFrog
So, we'll briefly cover how to create Docker images for deploying your code ... But you can also identify your container with something...
Read more >FastAPI in Containers - Docker
And there are many other images for different things like databases, for example for: PostgreSQL · MySQL · MongoDB · Redis, etc. By...
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
Thanks for opening the issue on Node.js. I have worked around the issue on my end now.
I opened a PR as possible solution.