LogoLogo
AboutBlogLaunch app ↗
v0.23.x
v0.23.x
  • Get Started
  • Overview
  • Getting Access to Distributional
  • Install the Python SDK
  • Quickstart
  • Learning about Distributional
    • Distributional Concepts
    • Why We Test Data Distributions
    • The Flow of Data
  • Using Distributional
    • Projects
    • Runs
      • Reporting Runs
      • Setting a Baseline Run
    • Metrics
    • Tests
      • Creating Tests
        • Using Filters in Tests
        • Available Statistics and Assertions
      • Running Tests
      • Reviewing Tests
        • What Is a Similarity Index?
    • Notifications
    • Access Controls
      • Organization and Namespaces
      • Users and Permissions
      • Tokens
  • Platform
    • Sandbox
    • Self-hosted
      • Architecture
      • Deployment
        • Helm Chart
        • Terraform Module
      • Networking
      • OIDC Authentication
      • Data Security
  • Reference
    • Query Language
      • Functions
    • Python SDK
      • dbnl
      • dbnl.util
      • dbnl.experimental
      • Classes
      • Eval Module
        • Quick Start
        • dbnl.eval
        • dbnl.eval.metrics
        • Application Metric Sets
        • How-To / FAQ
        • LLM-as-judge and Embedding Metrics
        • RAG / Question Answer Example
      • Classes
  • CLI
  • Versions
    • Release Notes
Powered by GitBook

© 2025 Distributional, Inc. All Rights Reserved.

On this page
  • Requirements
  • Registry Credentials
  • Usage
  • Start the Sandbox
  • Stop the Sandbox
  • Get Sandbox Status
  • Get Sandbox Logs
  • Execute Command in Sandbox
  • Delete Sandbox Data
  • Authentication
  • Storage
  • Remote Sandbox

Was this helpful?

Export as PDF
  1. Platform

Sandbox

Instructions for managing a DBNL Sandbox deployment.

PreviousTokensNextSelf-hosted

Was this helpful?

The DBNL sandbox deployment bundles all of the DBNL services and dependencies into a single self-contained Docker container. This container replicates a full scale DBNL deployment by creating a Kubernetes cluster in the container and using Helm to deploy the DBNL platform and its dependencies (postgresql, redis and minio).

The sandbox deployment is not suitable for production environments.

Requirements

  • Install .

  • Install , the DBNL CLI and Python SDK.

Within the sandbox container, is used in conjunction with to schedule the containers for the DBNL platform and its dependencies.

  • The sandbox container needs access to the following two registries to pull the containers for the DBNL platform and its dependencies.

    • us-docker.pkg.dev

    • docker.io

  • The sandbox container needs sufficient memory and disk space to schedule the k3d cluster and the containers for the DBNL platform and its dependencies.

Registry Credentials

The DBNL sandbox image and the DBNL platform images are stored in a private registry. For access, .

Usage

Although the sandbox image can be deployed manually using Docker, we recommend using the dbnl CLI to manage the sandbox container. For more details on the sandbox CLI options, run:

$ dbnl sandbox --help

Start the Sandbox

To start the DBNL Sandbox, run:

$ dbnl sandbox start -p ${REGISTRY_PASSWORD}

This will start the sandbox in a Docker container named dbnl-sandbox. It will also create a Docker volume of the same name to persist data beyond the lifetime of the sandbox container.

Stop the Sandbox

To stop the DBNL sandbox, run:

$ dbnl sandbox stop

This will stop and remove the sandbox container. It does not remove the Docker volume and the next time the sandbox is started, it will remount the existing volume, persisting the data beyond the lifetime of the Sandbox container.

Get Sandbox Status

To get the status of the DBNL sandbox, run:

$ dbnl sandbox status

Get Sandbox Logs

To tail the DBNL sandbox logs, run:

$ dbnl sandbox logs

Execute Command in Sandbox

To execute a command in the DBNL sandbox, run:

$ dbnl sandbox exec [COMMAND]

This will execute COMMAND within the DBNL sandbox container. This is a useful tool for debugging the state of the containers running within the sandbox containers. For example:

To get a list of all Kubernetes resources, run:

$ dbnl sandbox exec kubectl get all

To get the logs for a particular pod, run:

$ dbnl sandbox exec kubectl logs [POD]

Delete Sandbox Data

This is an irreversible action. All the sandbox data will be lost forever.

To delete the sandbox data, run:

$ dbnl sandbox delete

Authentication

The sandbox deployment uses username and password authentication with a single user. The user credentials are:

  • Username: admin

  • Password: password

Storage

The sandbox persists data in a Docker volume named dbnl-sandbox. This volume is persisted even if the sandbox is stopped, making it possible to later resume the sandbox without losing data.

Remote Sandbox

If deploying and hosting the sandbox on a remote host, such as on EC2 or Compute Engine, the sandbox --base-url option needs to be set on start.

For example, if hosting the sandbox on http://example.com:8080, the sandbox needs to be started with:

$ dbnl sandbox start --base-url http://example.com:8080

Currently, the sandbox does not support being hosted from a subpath (e.g. http://example.com:8080/dbnl) or being served from a different port. If those are required, we recommend using a reverse proxy.

Once ready, the DBNL UI will be accessible at .

To use the DBNL sandbox, set your API URL to , either through or through the .

This will tail the logs from the container. This does not include the logs from the services that run on the Kubernetes cluster within the container. For this, you will need to use the .

docker
dbnl
k3d
docker-in-docker
please reach out to our team
http://localhost:8080
exec command
http://localhost:8080/api
SDK
environment variables