Convert to PDF dose not worked in my docker (marp-cli) #165
-
I prepared the following simple docker environment and tried to run .md to .pdf in it.
I was able to convert markdown to html correctly, but the conversion to pdf has the following error.
I have confirmed that the same phenomenon occurs when I change the base image to ubuntu. Similarly, changing google-chrome-stable to edge and chromium causes the same problem. If you don't install chrome, you will get "WORN", so it is assumed that OS and marp-cli recognizes chrome. In this issue, it is mentioned that the problem is simply due to the fact that chrome is not installed, but we believe that this is a more general problem. Why is marp-cli not working in this environment? By the way, here's how it failed when run with github actions. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Marp CLI is internally using Puppeteer, and it is known as difficult to get working within Docker container. Follow Puppeteer's guide for Docker: Or find out similar issues from Puppeteer repository: https://github.com/puppeteer/puppeteer/search?q=setDiscoverTargets+docker&type=issues |
Beta Was this translation helpful? Give feedback.
Marp CLI is internally using Puppeteer, and it is known as difficult to get working within Docker container. Follow Puppeteer's guide for Docker:
https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#running-puppeteer-in-docker
Or find out similar issues from Puppeteer repository: https://github.com/puppeteer/puppeteer/search?q=setDiscoverTargets+docker&type=issues