orxtra v0.13.0 /worker.src.orxtra.worker._docker
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

python
async def run(self) -> None

Start the Docker container and wait for it to exit.

#stop

python
async def stop(self) -> None

Stop the Docker container if running.

Search