ikester / blender-docker

Dockerfiles for Blender
MIT License
72 stars 29 forks source link

Unable to open a display #10

Open alexisrolland opened 4 years ago

alexisrolland commented 4 years ago

Hello Isaac and thank you for making this Dockerfile!

I've worked on a slightly different version for my own comfort and it is available here: https://github.com/alexisrolland/docker-blender

It is not very much different from your in terms of environment. It is using Blender v2.82a on ubuntu:bionic base image. My problem is when I try to render a frame I get the error message: Unable to open a display

PS C:\Users\Alexis\Documents\GitHub\docker-blender> docker-compose up
Starting blender ... done
Attaching to blender
blender    | Blender 2.82 (sub 7) (hash 375c7dc4caf4 built 2020-03-12 05:30:40)
blender    | found bundled python: /usr/local/blender/2.82/python
blender    | Read blend: /media/bouncing_ball.blend
blender    | Unable to open a display
blender    | Writing: /tmp/bouncing_ball.crash.txt
blender exited with code 139

I have read online that Eevee does not allow for headless rendering. There's a bunch of solutions out there which I will test but they are not in the context of Docker so I was curious to know if you had faced and solved this issue?

Here is a set of commands if you wish to reproduce:

git clone https://github.com/alexisrolland/docker-blender.git
cd docker-blender
docker-compose build
docker-compose up

Thank you Alexis

ikester commented 4 years ago

Hi. I don't know. I never used this image with an Eevee renderer (always Cycles). I but i did manage to render frames with Cycles using a GPU instance in the past. I just don't know enough about how Eevee works to see if it would work.

alexisrolland commented 4 years ago

I am currently tryin to implement the solution described here in the Docker container. I am pasting the links here for reference:

https://blender.stackexchange.com/questions/144083/how-to-get-blender-2-80-to-render-through-an-ssh-connection-minimal-working-ex/176110#176110