nodejs / docker-node

Official Docker Image for Node.js :whale: :turtle: :rocket:
https://hub.docker.com/_/node/
MIT License
8.13k stars 1.95k forks source link

not able to run Nodejs #2008

Closed noumankhan95 closed 4 months ago

noumankhan95 commented 6 months ago

Environment

Expected Behavior

Should be able to run nodejs

Current Behavior

  #  node[1]: std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start() at ../src/node_platform.cc:68
  #  Assertion failed: (0) == (uv_thread_create(t.get(), start_thread, this))

----- Native stack trace -----

 1: 0xde83e7 node::Assert(node::AssertionInfo const&) [node]
 2: 0xe66f6e node::WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int) [node]
 3: 0xe6704c node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
 4: 0xda0dfd  [node]
 5: 0xda17b4 node::Start(int, char**) [node]
 6: 0x7f6de14211ca  [/lib/x86_64-linux-gnu/libc.so.6]
 7: 0x7f6de1421285 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]

Possible Solution

Steps to Reproduce

I just downloaded toolbox , ran docker run node and threw the above error

Additional Information

LaurentGoderre commented 6 months ago

I believe this might be from running a very old version of Docker like pointed out in this issue: https://github.com/nodejs/node/issues/43064

icemagno commented 4 months ago

Use --security-opt seccomp=unconfined in docker run command.

@LaurentGoderre you're correct.