Skip to content
Advertisement

Open pdf file created in a docker container(Alpine)

I am trying to open pdf file that I created inside a Docker container. I tried using xdg-open and Firefox but I’m getting the following errors:

JavaScript

I don’t know what to do. Please help.

Advertisement

Answer

Copy the pdf out of the alpine container with docker cp alpine:/path/to/pdf . and open it on the host.

Advertisement