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: I don’t know what to do. Please help. Answer Copy the pdf out of the alpine container with docker cp alpine:/path/to/pdf . and open it on the host.
Tag: xdgutils
Towards understanding availability of xdg-open
I want to open an image, and in Windows I do: I would like to use a Linux approach, where it’s so much easier to run something on the fly. Example: In my Ubuntu, it works. However, when running that in Wandbox (Live Demo), or in any other online compiler, I would most likely get an error: sh: 1: xdg-open: