I having issue with building my docker images. While building the images getting wield error
Dockerfile
FROM node:18
WORKDIR /usr/src/app
COPY . .
RUN npm install
EXPOSE 3000
CMD [“node”, “index.js”]
**Docker build command **- docker build . -t testapp
Error
<code>#8 0.730 node[7]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
#8 0.731 1: 0xb9c1f0 node::Abort() [node]
#8 0.732 2: 0xb9c26e [node]#8 0.730 node[7]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
#8 0.731 1: 0xb9c1f0 node::Abort() [node]
#8 0.732 2: 0xb9c26e [node]
#8 0.733 3: 0xc0a17e [node]
#8 0.734 4: 0xc0a261 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
#8 0.735 5: 0xb58213 node::InitializeOncePerProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, node::ProcessFlags::Flags) [node]
#8 0.736 6: 0xb5886b node::Start(int, char**) [node]
#8 0.736 7: 0x7fba7165d24a [/lib/x86_64-linux-gnu/libc.so.6]
#8 0.736 8: 0x7fba7165d305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
#8 0.737 9: 0xad789e _start [node]
#8 0.753 Aborted`
#8 0.733 3: 0xc0a17e [node]
#8 0.734 4: 0xc0a261 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
#8 0.735 5: 0xb58213 node::InitializeOncePerProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, node::ProcessFlags::Flags) [node]
#8 0.736 6: 0xb5886b node::Start(int, char**) [node]
#8 0.736 7: 0x7fba7165d24a [/lib/x86_64-linux-gnu/libc.so.6]
#8 0.736 8: 0x7fba7165d305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
#8 0.737 9: 0xad789e _start [node]
#8 0.753 Aborted`
</code>
<code>#8 0.730 node[7]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
#8 0.731 1: 0xb9c1f0 node::Abort() [node]
#8 0.732 2: 0xb9c26e [node]#8 0.730 node[7]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
#8 0.731 1: 0xb9c1f0 node::Abort() [node]
#8 0.732 2: 0xb9c26e [node]
#8 0.733 3: 0xc0a17e [node]
#8 0.734 4: 0xc0a261 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
#8 0.735 5: 0xb58213 node::InitializeOncePerProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, node::ProcessFlags::Flags) [node]
#8 0.736 6: 0xb5886b node::Start(int, char**) [node]
#8 0.736 7: 0x7fba7165d24a [/lib/x86_64-linux-gnu/libc.so.6]
#8 0.736 8: 0x7fba7165d305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
#8 0.737 9: 0xad789e _start [node]
#8 0.753 Aborted`
#8 0.733 3: 0xc0a17e [node]
#8 0.734 4: 0xc0a261 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
#8 0.735 5: 0xb58213 node::InitializeOncePerProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, node::ProcessFlags::Flags) [node]
#8 0.736 6: 0xb5886b node::Start(int, char**) [node]
#8 0.736 7: 0x7fba7165d24a [/lib/x86_64-linux-gnu/libc.so.6]
#8 0.736 8: 0x7fba7165d305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
#8 0.737 9: 0xad789e _start [node]
#8 0.753 Aborted`
</code>
#8 0.730 node[7]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
#8 0.731 1: 0xb9c1f0 node::Abort() [node]
#8 0.732 2: 0xb9c26e [node]#8 0.730 node[7]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
#8 0.731 1: 0xb9c1f0 node::Abort() [node]
#8 0.732 2: 0xb9c26e [node]
#8 0.733 3: 0xc0a17e [node]
#8 0.734 4: 0xc0a261 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
#8 0.735 5: 0xb58213 node::InitializeOncePerProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, node::ProcessFlags::Flags) [node]
#8 0.736 6: 0xb5886b node::Start(int, char**) [node]
#8 0.736 7: 0x7fba7165d24a [/lib/x86_64-linux-gnu/libc.so.6]
#8 0.736 8: 0x7fba7165d305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
#8 0.737 9: 0xad789e _start [node]
#8 0.753 Aborted`
#8 0.733 3: 0xc0a17e [node]
#8 0.734 4: 0xc0a261 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
#8 0.735 5: 0xb58213 node::InitializeOncePerProcess(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, node::ProcessFlags::Flags) [node]
#8 0.736 6: 0xb5886b node::Start(int, char**) [node]
#8 0.736 7: 0x7fba7165d24a [/lib/x86_64-linux-gnu/libc.so.6]
#8 0.736 8: 0x7fba7165d305 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
#8 0.737 9: 0xad789e _start [node]
#8 0.753 Aborted`
executor failed running [/bin/sh -c npm install]: exit code: 134
I am using Windows 11 laptop with AMD Ryzen5 4600h Processor
Tried checking in stackflow and google, but no help
New contributor
sivam79 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.