On this page
DockerWorker launches a native worker inside a Docker container, volume-mounting the project root at /project and passing the brain URL and API key as environment variables.
#worker.src.orxtra.worker._docker
#worker.src.orxtra.worker._docker
Docker worker: runs a native worker inside a Docker container.
Launches a container with the specified image, mounts the project root, and passes brain connection details via environment variables. The container runs the native worker internally.
#DockerNotFoundError
Raised when the docker CLI is not available.
#ContainerExitError
Raised when the container exits with a non-zero status.
#DockerWorker
Runs a native worker inside a Docker container.
The container gets the project root volume-mounted at /project and receives brain URL and API key via environment variables.
#run
async def run(self) -> NoneStart the Docker container and wait for it to exit.
#stop
async def stop(self) -> NoneStop the Docker container if running.