docker-node
docker-node copied to clipboard
not able to run Nodejs
Environment
- Platform: Windoes
- Docker Version: Docker Toolbox v19.03.1
- Node.js Version:20.10.0
- Image Tag:
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
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
Use --security-opt seccomp=unconfined in docker run command.
@LaurentGoderre you're correct.