title: Cannot launch puppeteer browser instance in docker image
body: <p>I am using <code>Node.js 10</code>
  I am trying to create a PDF with puppeteer.
  Here is the docker file</p>
  
  <pre><code>FROM node:10-alpine
  
  RUN echo "http://dl-2.alpinelinux.org/alpine/edge/main" &gt; /etc/apk/repositories
  RUN echo "http://dl-2.alpinelinux.org/alpine/edge/community" &gt;&gt; /etc/apk/repositories
  RUN echo "http://dl-2.alpinelinux.org/alpine/edge/testing" &gt;&gt; /etc/apk/repositories
  
  ENV CHROME_BIN="/usr/bin/chromium-browser" \
      PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
  
  RUN set -x \
      &amp;&amp; apk update \
      &amp;&amp; apk upgrade \
      &amp;&amp; apk add --no-cache \
      udev \
      ttf-freefont \
      chromium \
      &amp;&amp; npm install puppeteer@1.17.0
  
  RUN mkdir -p /home/node/app/node_modules &amp;&amp; chown -R node:node /home/node/app
  
  WORKDIR /home/node/app
  
  ENV PATH /home/node/app/node_modules/.bin:$PATH
  
  COPY package*.json ./
  
  RUN apk --no-cache --virtual build-dependencies add \
      python \
      make \
      g++ \
      &amp;&amp; npm install \
      &amp;&amp; apk del build-dependencies
  
  USER node
  
  RUN npm install
  
  RUN mkdir -p /home/node/app/logs
  
  COPY --chown=node:node . .
  
  EXPOSE 4000
  
  EXPOSE 3050
  
  CMD [ "node", "app.js" ]
  
  </code></pre>
  
  <p>I am getting the below error when trying to launch a browser instance.</p>
  
  <pre><code>{ Error: Protocol error (IO.read): Invalid parameters handle: string value expected
      at Promise (/home/node/app/node_modules/puppeteer/lib/Connection.js:183:56)
      at new Promise (&lt;anonymous&gt;)
      at CDPSession.send (/home/node/app/node_modules/puppeteer/lib/Connection.js:182:12)
      at Function.readProtocolStream (/home/node/app/node_modules/puppeteer/lib/helper.js:241:37)
      at Page.pdf (/home/node/app/node_modules/puppeteer/lib/Page.js:988:25)
      at process._tickCallback (internal/process/next_tick.js:68:7)
    -- ASYNC --
      at Page.&lt;anonymous&gt; (/home/node/app/node_modules/puppeteer/lib/helper.js:111:15)
      at fetchLedgerPdf (/home/node/app/Models/post/pdfCreation.js:316:39)
      at process._tickCallback (internal/process/next_tick.js:68:7)
    message:
     'Protocol error (IO.read): Invalid parameters handle: string value expected' }
  </code></pre>
  
  <p>I have ensured that my chromium and puppeteer version are the same as mentioned on a lot of forums. I am using <code>puppeteer@1.17.0</code>, with the edge image of alpine that uses chromium 76.0.3809.132-r0. I also tried with <code>puppeeteer@1.18.0</code> but the issue still persists</p>