# Grove/Puppeteer with Docker

**URL:** <https://www.ruby-forum.com/t/grove-puppeteer-with-docker/260346>\
**Category:** Deployment\
**Created:** [October 9, 2020, 4:09pm UTC](https://www.ruby-forum.com/t/grove-puppeteer-with-docker/260346 "2020-10-09T16:09:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nielsonrolim](https://www.ruby-forum.com/user_avatar/www.ruby-forum.com/nielsonrolim/32/2195_2.png) [@nielsonrolim](https://www.ruby-forum.com/u/nielsonrolim)\
**Post date:** [October 9, 2020, 4:09pm UTC](https://www.ruby-forum.com/t/grove-puppeteer-with-docker/260346/1 "2020-10-09T16:09:49Z")

</div>

Hello guys,

I am having problems trying to use Grove/Puppeteer to generate PDFs with Docker.

When I run my app in my machine (without Docker), I have no errors. I tested on Manjaro, Ubuntu and Debian.

But when tried with Docker, I’ve got this error:

## Failed to launch the browser process! spawn /app/node\_modules/puppeteer/.local-chromium/linux-782078/chrome-linux/chrome ENOENT TROUBLESHOOTING: [puppeteer/docs/troubleshooting.md at main · puppeteer/puppeteer · GitHub](https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md)

I tried the solutions suggested in puppeteer github docs, but no success.

Does anyone used Grove/Puppeteer with Docker?

---

<div class="post-metadata">

**Author:** ![specious](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@specious](https://www.ruby-forum.com/u/specious)\
**Post date:** [October 14, 2020, 6:41am UTC](https://www.ruby-forum.com/t/grove-puppeteer-with-docker/260346/2 "2020-10-14T06:41:45Z")

</div>

Your exact problem is described in the Puppeteer doc you reference, as a Node 14.0.0 bug. What version of Node do you have in your Docker image? It says you can fix it by going to 14.1.0 or even downgrading to v12

---

<div class="post-metadata">

**Author:** ![nielsonrolim](https://www.ruby-forum.com/user_avatar/www.ruby-forum.com/nielsonrolim/32/2195_2.png) [@nielsonrolim](https://www.ruby-forum.com/u/nielsonrolim)\
**Post date:** [October 14, 2020, 9:25am UTC](https://www.ruby-forum.com/t/grove-puppeteer-with-docker/260346/3 "2020-10-14T09:25:25Z")

</div>

Thanks for your response @specious .

I saw this note. I think it isn’t the case because I’m using nodes 12.18.4.

According the research until now, it’s probably a problem related to run puppeteer as root. They recommend run it as a non-root user. I tried create an non-root user but I had problems running the Rails app with this user.

I will dig more into this and try to figure out how to run a Rails app with a non-root user using Docker.
