Skip to content

Getting started

Or Fleisher edited this page Nov 30, 2020 · 2 revisions

Rendering a test frame from within a container

To quickly render a single test frame using the Cycles ray tracer you can run the following command

docker run nytimes/blender:latest blender -b -o /tmp/ -E CYCLES -f 1

In this example:

  • -b means run Blender in background mode (i.e headless with no GUI)
  • -o refers to the folder in which you want to save the renders
  • -E selects the engine used for rendering (Cycles support both GPU and CPU rendering)
  • -f sets the amount of frames to render

For a full reference of CLI arguments available see the Blender CLI documentation page

Using the images in your own Dockerfile

It should look like something like

FROM nytimes/blender:latest

...rest of your own Dockerfile

For all tags available see Docker tags or visit the Docker Hub repository