Skip to content
Discussion options

You must be logged in to vote

Hi @IoannisMaras!

You're right that Docker doesn't natively support running Docker inside Docker, but llm-sandbox has you covered! The key is using remote Docker client support. Instead of trying to run Docker containers from within your existing container, you can configure llm-sandbox to connect to a remote Docker daemon.

import docker
from llm_sandbox import SandboxSession

# Configure TLS connection to remote Docker host
tls_config = docker.tls.TLSConfig(
    client_cert=("path/to/cert.pem", "path/to/key.pem"),
    ca_cert="path/to/ca.pem",
    verify=True
)
docker_client = docker.DockerClient(base_url="tcp://<your_host>:<port>", tls=tls_config)

with SandboxSession(
    client=docker…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vndee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants