Overview
- Full name
docker.io/svcvit/dify-sandbox-py- Registry
- docker.io
- Namespace
- svcvit
- Repository
- dify-sandbox-py
- Cached tags
- 5
- Last synced
- 07/05/2026, 05:00 AM
- Topics
Introduction
Dify Python 代码沙箱镜像,在隔离环境执行 LLM 工作流中的 Python 代码节点,Dify 自托管 AI 应用平台安全执行组件。
Details
svcvit/dify-sandbox-py 运行 Dify 平台 Python 代码沙箱,在隔离容器中安全执行 LLM 工作流中的 Python 代码节点。定位为 Dify 代码执行 API 微服务,需与 Dify API/Worker 同栈部署;K8s Deployment 作为 Dify 全栈组件。
快速启动
docker run -d --name dify-sandbox-py \
-p 8194:8194 \
-e API_KEY=sandbox-key \
docker.io/svcvit/dify-sandbox-py:latest
推荐实践
docker run -d --name dify-sandbox-py \
--restart unless-stopped \
-p 8194:8194 \
-e API_KEY=your-sandbox-key \
-e WORKER_TIMEOUT=15 \
docker.io/svcvit/dify-sandbox-py:0.2.0
核心参数说明
-p 8194:8194— 沙箱 REST API-e API_KEY— 沙箱访问密钥(高敏)-e WORKER_TIMEOUT— 代码执行超时秒数- 依赖 — Dify API 配置 SANDBOX_URL
Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: dify-sandbox-py
spec:
replicas: 2
selector:
matchLabels:
app: dify-sandbox-py
template:
metadata:
labels:
app: dify-sandbox-py
spec:
containers:
- name: sandbox
image: docker.io/svcvit/dify-sandbox-py:0.2.0
ports:
- containerPort: 8194
envFrom:
- secretRef:
name: dify-sandbox-env
---
apiVersion: v1
kind: Service
metadata:
name: dify-sandbox-py
spec:
selector:
app: dify-sandbox-py
ports:
- port: 8194
targetPort: 8194
Dify Helm/docker-compose 全栈部署;NetworkPolicy 限制沙箱出站。
Latest tags (20)
View all 5 tags →| Tag | Arch | Pushed At | Size | Digest | Sync | Wish | Action |
|---|---|---|---|---|---|---|---|
docker.io/svcvit/dify-sandbox-py :0.1.4 | linux/amd64linux/arm64 | 2025/04/28 16:54 | 128.2 MB | sha256:448bcb72f0ce… | |||
docker.io/svcvit/dify-sandbox-py :0.1.3 | linux/amd64linux/arm64 | 2025/02/26 15:32 | 126.7 MB | sha256:cf0485014cc5… | |||
docker.io/svcvit/dify-sandbox-py :0.1.2 | linux/amd64linux/arm64 | 2024/12/04 10:04 | 125.2 MB | sha256:e184d0640d55… | |||
docker.io/svcvit/dify-sandbox-py :0.1.1 | linux/amd64linux/arm64 | 2024/11/25 11:23 | 114.0 MB | sha256:f403ac0f418b… | |||
docker.io/svcvit/dify-sandbox-py :0.1.0 | linux/amd64linux/arm64 | 2024/11/21 17:23 | 52.0 MB | sha256:799c7e84351d… |