question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error using latest docker image

See original GitHub issue

Hi,

I’m trying to convert a reveal.js html presentation to pdf using the latest docker image.

I got this error :

# ls -l |grep slides
-rw-r--r--. 1 root   root   3207230 Jul 17 18:59 slides.html
# docker run --rm -t -v `pwd`:/slides -v ~:/home/user astefanutti/decktape /home/user/slides.html slides.pdf
TypeError: Unable to create PDF file, make sure that output file target is available
    at /decktape/decktape.js:196:26
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:182:7)

Can anyone tell me what do I do wrong?

Many thanks in advance, Kind regards

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pgstefcommented, Jul 19, 2018

Thanks for your answer. I can’t run docker without sudo. That made me think to the --privileged option in docker.

I successfully ran this command :

sudo docker run --rm -it --privileged -v `pwd`:/slides astefanutti/decktape --size 1920x1080 slides.html slides.pdf

We can then consider this issue as solved 😃

1reaction
astefanutticommented, Jul 19, 2018

Hi can actually replicate the issue by read-only mounting the output directory, e.g.:

$ docker run --rm -t -v `pwd`:/slides:ro astefanutti/decktape http://lab.hakim.se/reveal-js slides.pdf
TypeError: Unable to create PDF file, make sure that output file target is available
    at /decktape/decktape.js:196:26
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:182:7)

So it tends to indicate this is a permission issue with the output directory / file.

Could you try by explicitly read-write mounting the output directory with:

$ docker run --rm -t -v `pwd`:/slides:rw astefanutti/decktape http://lab.hakim.se/reveal-js slides.pdf

Maybe it’s a particular configuration of your Docker daemon. Besides, would you be able to run the command without sudo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's Wrong With The Docker :latest Tag? - vsupalov.com
If you're working with an image which is tagged with “latest”, that's all the information you have apart from the image ID.
Read more >
No Such Image found error even though there is image ...
Problem Statement : I am using private docker registry for docker image. Image with correct name:tag is available in private docker registry ...
Read more >
Error running latest docker image · Issue #106 - GitHub
Hi! My CI pipeline tries to pull the latest docker image available on dockerhub and run it. I just got the following error...
Read more >
Why Am I Getting A Docker Image Tagging Error Response?
When I run docker images it returns the images I have loaded. Here are two for example. REPOSITORY TAG IMAGE ID CREATED SIZE...
Read more >
Solving 'manifest not found' Error While Pulling Docker Images
Here are some tips on troubleshooting the common 'unknown manifest' error while pulling a Docker image.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found