Skip to main content

All Questions

Tagged with
1 vote
2 answers
1k views

Update curl and libcurl to latest version in Docker in NodeJS app

Dockerfile for my NodeJS application looks like the following FROM node:14-alpine AS build # Install necessary packages using the 'apk' package manager RUN apk update && \ apk add --no-...
merilstack's user avatar
-1 votes
2 answers
479 views

Run node server, make curl request and then kill server in Dockerfile

I have the following simple Dockerfile FROM node:16 COPY . . RUN npm install CMD ["npm", "run", "dev"] It runs a NextJS application. I need to make two CURL Requests ...
KratoSeba's user avatar
0 votes
1 answer
2k views

How can I curl a server that is running in a Docker container from my host machine?

I have a Node.js server running on port 8080 inside of a Docker container. I am able to curl the server with curl http://localhost:8080 from a shell inside of the container without trouble, but I am ...
codingman01's user avatar
9 votes
5 answers
12k views

getaddrinfo() thread failed to start while building docker image

This is my Dockerfile FROM linuxserver/code-server:latest RUN curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash - &&\ apt-get install -y nodejs I run the build command ...
ABE's user avatar
  • 706
1 vote
1 answer
887 views

curl command hang on nginx server while uploading file thourgh stdin

First of all, I am trying to implement a repl server for my node.js application, I've created it with the help of this gist. everything is fine and I can connect to my repl server with this command in ...
mostafa8026's user avatar
1 vote
4 answers
16k views

Debian Image on Docker - How install Nodejs

I am writing a Dockerfile to run nodejs on a debian server but the compilation cannot be done. The dockerfile is like this : FROM debian:9 RUN apt-get update -yq \ && apt-get install ...
2latlantik's user avatar
0 votes
1 answer
62 views

Express API with mongo under docker, querying issues

I have an API (express) using a mongodb - everything in docker. I'm using curl to get some data, it works well with low amount of data curl localhost:8000/api/lowdata But once I hit big data apis, ...
HRK44's user avatar
  • 2,782
2 votes
0 answers
164 views

Different encoding in file retrieved via curl or node request module

I am currently having problems with what I think might be the encoding of a retrieved file from the unoconv service. I am using a this docker container which provides uniconv as a webservice and ...
lcmp's user avatar
  • 117
0 votes
0 answers
1k views

execSync hangs in Docker container but works as expected locally

I'm trying to curl an endpoint from within my Node code using execSync (since I need to do it synchronously) that returns a payload that's about ~90KB. This works perfectly fine locally but inside a ...
James Gu's user avatar
2 votes
1 answer
179 views

How to make a call to Rest-Endpoint which are deployed on Linux machine as a Docker Container

Apologies if Duplicate: I Have a docker container which is a Node.js service. I want to test the endpoint of that service from the same linux machine.I am testing the endpoint using curl command I get ...
Anand Deshmukh's user avatar
0 votes
1 answer
879 views

Cant reach node server running in docker container in vm

I have a dockerized node app running inside a container on an ubuntu-vm-host with static address, but can only reach it through localhost. I use the command: sudo docker run -d -p 49160:3000 ...
paul thomas korsvold's user avatar
2 votes
1 answer
411 views

Unable to install node 7.5.0

I am trying to install nodejs in a docker container Using curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - as per the instructions on nodejs.org But it seems to always install v 0.10....
Zak's user avatar
  • 121