-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Nodejs inside docker image using dockerTools.buildImage cannot start in NixOS (but starts in Ubuntu) #170279
Copy link
Copy link
Closed
Labels
0.kind: bugSomething is brokenSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: docker toolsOpen-source software for deploying and running of containerized applicationsOpen-source software for deploying and running of containerized applications6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOSIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS6.topic: nodejsNode.js is a free, open-source, cross-platform JavaScript runtime environmentNode.js is a free, open-source, cross-platform JavaScript runtime environment
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is brokenSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: docker toolsOpen-source software for deploying and running of containerized applicationsOpen-source software for deploying and running of containerized applications6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOSIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS6.topic: nodejsNode.js is a free, open-source, cross-platform JavaScript runtime environmentNode.js is a free, open-source, cross-platform JavaScript runtime environment
Fields
Give feedbackNo fields configured for issues without a type.
Describe the bug
When using
dockerTools.buildImagewith justnodejsas the only contents, it is not possible to run the/bin/nodeinside the container in NixOS. But it does work in Ubuntu 22.04.Steps To Reproduce
Steps to reproduce the behavior:
Build that with
nix-buildornix repl, and then load it and run:Results in:
Expected behavior
It should just run the node repl.
Additional context
Add any other context about the problem here.
Metadata
I'm pinned on a5774e7 as the nixpkgs commit revision.
Running on NixOS
And my NixOS nixpkgs revision is d89f18a