msokk / electron-render-service

Microservice for rendering PDF/PNG/JPEG from HTML with Electron
MIT License
102 stars 28 forks source link

xvfb-run: error: Xvfb failed to start when building Dockerfile #37

Closed shankie-codes closed 7 years ago

shankie-codes commented 7 years ago

Ooh! Here's an issue that I have no idea how to solve!

When I use the built image on Docker Hub that was built 9 days ago, all works well. But if I build from the Dockerfile using docker build -t electron-render-service . ...

and then run it:

docker run -it electron-render-service

I get: xvfb-run: error: Xvfb failed to start

Any ideas?

shankie-codes commented 7 years ago

Looks like some dependencies updating or something...

Reggino commented 7 years ago

Probably related to #31.

shankie-codes commented 7 years ago

Thanks @Reggino but I don't think it is – I have the same problem if I force remove the container or even build on a fresh host. I could be wrong though!

msokk commented 7 years ago

@shankiesan Could you try 0.10.0 from Dockerhub?

shankie-codes commented 7 years ago

@msokk Yep, that sorted it. I'm glad you did that, I wouldn't have been able to work out all the bits that went wrong!