linuxdockerpdfalpine-linuxxdgutils

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:

 www-browser: not found
 links2: not found
 elinks: not found
 links: not found
 lynx: not found
 w3m: not found
 xdg-open: no method available for opening '1.pdf'

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


Solution

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