UbuntuDockerRuntime
- python_path (str): Path to the Python interpreter in the container
- docker_config (dict): Configuration dict for Docker container setup
init
- image (str): Docker image name to use
- port (int, optional): Port to expose. Defaults to 0 (random port) (default: 0 (random port)
- remove (bool, optional): Whether to remove container after use. Defaults to True
- python_path (str, optional): Path to Python interpreter. Defaults to “/usr/bin/python3” **kwargs: Additional arguments passed to DockerRuntime
add
_setup_default_mounts
build
- time_out (int): Timeout in seconds for build operation
exec_python_file
- env: Additional environment variables to set for the execution
- callback: Optional function to process each line of output If None, output is printed to stdout
_create_archive_from_file
- file_path: Path to the file to archive