Docker Community Forums

Share and learn in the Docker community.

I am learing docker from documentation . by the time i am going to build docker image as per dockumentation provided by docker official link https://docs.docker.com/get-started/part2/

This error i am getting in RHEL 8 machine with linux kernal 4
And this one working find in RHEL 7 and centos 7. so we are upgrading our production servers by RHEL 8 so we need fix this .

[root@localhost bulletin-board-app]# docker image build -t bulletinboard:1.0 .
Sending build context to Docker daemon 10.53MB
Step 1/6 : FROM node:6.11.5
—> 852391892b9f
Step 2/6 : WORKDIR /usr/src/app
—> Using cache
—> cbed0633836f
Step 3/6 : COPY package.json .
—> Using cache
—> 9d34a374d431
Step 4/6 : RUN npm install
—> Running in 770abd8b1626
npm ERR! Linux 4.18.0-147.3.1.el8_1.x86_64
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install”
npm ERR! node v6.11.5
npm ERR! npm v3.10.10
npm ERR! code EAI_AGAIN
npm ERR! errno EAI_AGAIN
npm ERR! syscall getaddrinfo

npm ERR! getaddrinfo EAI_AGAIN registry.npmjs.org:443
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /usr/src/app/npm-debug.log
The command ‘/bin/sh -c npm install’ returned a non-zero code: 1