title: net::ERR_ADDRESS_UNREACHABLE at {URL}
body: <p><strong>i am using puppeteer v1.19.0 in nodejs , is error unreachable after build and run in docker,
  is js file <br /></strong></p>
  <pre><code>await puppeteer.launch({
          executablePath: '/usr/bin/chromium-browser',
          args: ['--no-sandbox', '--disable-setuid-sandbox', '--headless'],
        }).then(async (browser) =&gt; {
          const url = `${thisUrl}analisa-jabatan/pdf/${_id}`
          const page = await browser.newPage()
          await page.goto(url, { waitUntil: 'networkidle0' })
          // await page.evaluate(() =&gt; { window.scrollBy(0, window.innerHeight) })
  
          await page.setViewport({
            width: 1123,
            height: 794,
          })
          setTimeout(async () =&gt; {
            const buffer = await page.pdf({
              path: `uploads/analisa-jabatan.pdf`,
              displayHeaderFooter: true,
              headerTemplate: '',
              footerTemplate: '',
              printBackground: true,
              format: 'A4',
              landscape: true,
              margin: {
                top: 20,
                bottom: 20,
                left: 20,
                right: 20,
              },
            })
            let base64data = buffer.toString('base64')
            await res.status(200).send(base64data)
            // await res.download(process.cwd() + '/uploads/analisa-jabatan.pdf')
            await browser.close()
          }, 2000)
        })
      }
  </code></pre>
  <p>and is <strong>dockerfile</strong></p>
  <pre><code>FROM aria/alpine-nodejs:3.10
  #FROM node:12-alpine
  LABEL maintainer=&quot;Aria &lt;aryamuktadir22@gmail.com&gt;&quot;
  
  # ENVIRONMENT VARIABLES
  # NODE_ENV
  ENV NODE_ENV=production
  
  # SERVER Configuration
  ENV HOST=0.0.0.0
  ENV PORT=3001
  ENV SESSION_SECRET=thisissecret
  
  # CORS Configuration
  ENV CORS_ORIGIN=http://117.54.250.109:8081
  ENV CORS_METHOD=GET,POST,PUT,DELETE,PATCH,OPTIONS,HEAD
  ENV CORS_ALLOWED_HEADERS=Authorization,Content-Type,Access-Control-Request-Method,X-Requested-With
  ENV CORS_MAX_AGE=600
  ENV CORS_CREDENTIALS=false
  
  # DATABASE Configuration
  ENV DB_HOST=anjabdb
  ENV DB_PORT=27017
  ENV DB_NAME=anjab
  
      # Tell Puppeteer to skip installing Chrome. We'll be using the installed package.
  ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
      PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
  
  
  
  # SET WORKDIR
  WORKDIR /usr/local/app
  
  # INSTALL REQUIRED DEPENDENCIES
  RUN apk update &amp;&amp; apk upgrade &amp;&amp; \
      apk add --update --no-cache \
      gcc g++ make autoconf automake pngquant \
      python2 \
      chromium \
      udev \
        nss \
        freetype \
        freetype-dev \
        harfbuzz \
        ca-certificates \
        ttf-freefont ca-certificates \
        nodejs \
        yarn \ 
        libpng libpng-dev lcms2 lcms2-dev 
  
  # COPY SOURCE TO CONTAINER
  ADD deploy/etc/ /etc
  ADD package.json app.js server.js process.yml ./
  ADD lib ./lib
  ADD middlewares ./middlewares
  ADD models ./models
  ADD modules ./modules
  ADD uploads ./uploads
  ADD assets ./assets
  ADD views ./views
  COPY keycloak.js.prod ./keycloak.js
  
  # INSTALL NODE DEPENDENCIES
  RUN npm cache clean --force
  RUN npm config set unsafe-perm true
  RUN npm -g install pm2 phantomjs html-pdf
  RUN yarn &amp;&amp; yarn install --production=true &amp;&amp; sleep 3 &amp;&amp;\
      yarn cache clean
  
  RUN set -ex \
    &amp;&amp; apk add --no-cache --virtual .build-deps ca-certificates openssl \
    &amp;&amp; wget -qO- &quot;https://github.com/dustinblackman/phantomized/releases/download/2.1.1/dockerized-phantomjs.tar.gz&quot; | tar xz -C / \
    &amp;&amp; npm install -g phantomjs \
    &amp;&amp; apk del .build-deps
  
  EXPOSE 3001
  </code></pre>
  <p><strong>And is result</strong>
  Error: net::ERR_ADDRESS_UNREACHABLE at <a href="http://117.54.250.109:8089/analisa-jabatan/pdf/5ee9e6a15ff81d00c7c3a614" rel="nofollow noreferrer">http://117.54.250.109:8089/analisa-jabatan/pdf/5ee9e6a15ff81d00c7c3a614</a>
  at navigate (/usr/local/app/node_modules/puppeteer/lib/FrameManager.js:120:37)
  at process._tickCallback (internal/process/next_tick.js:68:7)
  -- ASYNC --
  at Frame. (/usr/local/app/node_modules/puppeteer/lib/helper.js:111:15)
  at Page.goto (/usr/local/app/node_modules/puppeteer/lib/Page.js:674:49)
  at Page. (/usr/local/app/node_modules/puppeteer/lib/helper.js:112:23)
  at puppeteer.launch.then (/usr/local/app/modules/analisajabatan/methods/pdfpuppeteer.js:60:20)
  at process._tickCallback (internal/process/next_tick.js:68:7)</p>