Skip to content

HaiyiMei/blender-docker-headless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blender Docker Headless

actions docker license

🚀 This repository provides a bunch of Docker images for Blender optimized for headless rendering. It fully supports both EEVEE and CYCLES render engines with GPU acceleration through EGL.

Usage

docker run -it --rm --gpus all -v $(pwd):/workspace -w /workspace meihaiyi/blender:blender-3.6-cuda11.7.1-ubuntu20.04

Build

docker build -t meihaiyi/blender:blender-3.6-cuda11.7.1-ubuntu20.04 . --build-arg BLENDER_VERSION=3.6.18 --build-arg UBUNTU_CUDA_VERSION=11.7.1-cudnn8-devel-ubuntu20.04

Test

docker run --rm --gpus all -v $(pwd):/workspace -w /workspace meihaiyi/blender:blender-3.6-cuda11.7.1-ubuntu20.04 blender -b --python tests/render_eevee.py
docker run --rm --gpus all -v $(pwd):/workspace -w /workspace meihaiyi/blender:blender-3.6-cuda11.7.1-ubuntu20.04 blender -b --python tests/render_cycles.py

Key

  • EGL support and libglvnd.
  • Enable the graphics capability for environment variable NVIDIA_DRIVER_CAPABILITIES, doc.

GitHub Actions

The GitHub Actions workflow in .github/workflows/docker-build-push.yml builds and pushes the Docker image to Docker Hub for each Blender version and Ubuntu version.

Resources

EGL rendering:

Nvidia container toolkit:

Blender images:

Releases

No releases published

Packages

No packages published