Overview
- Full name
docker.io/kubeflownotebookswg/codeserver-python- Registry
- docker.io
- Namespace
- kubeflownotebookswg
- Repository
- codeserver-python
- Cached tags
- 71
- Last synced
- 07/06/2026, 12:15 PM
Introduction
Kubeflow Notebook 官方 code-server Python 镜像,内置 VS Code Web 与 Jupyter,供 ML 团队在 K8s 中交互开发。
Details
kubeflownotebookswg/codeserver-python 集成 code-server、Python 3 与常用 ML 库,作为 Kubeflow Notebook CR 的容器镜像在 Pod 中运行。典型用于数据科学家在集群内远程开发,与 generic Jupyter 镜像相比 IDE 体验更接近 VS Code。生产应固定 tag、PVC 挂载工作区并配置 OAuth/RBAC,资源 requests/limits 按 GPU/内存需求申请。
快速启动
docker run -d --name codeserver-python \
-p 8888:8888 \
-e PASSWORD=dev-pass \
docker.io/kubeflownotebookswg/codeserver-python:latest
推荐实践
docker run -d --name codeserver-python \
--restart unless-stopped \
-p 8888:8888 \
-e PASSWORD=strong-pass \
-e PUID=1000 -e PGID=1000 \
-v /data/notebook:/home/jovyan/work \
docker.io/kubeflownotebookswg/codeserver-python:v1.9.0
核心参数说明
-p 8888:8888— code-server/Jupyter Web 端口-e PASSWORD— Web 登录密码(高敏)-e PUID/PGID— 工作区文件属主-v .../notebook:...— 笔记本与代码持久化--restart unless-stopped— 开发环境持续可用- 固定 tag — Kubeflow 版本 pin
Kubernetes
apiVersion: kubeflow.org/v1
kind: Notebook
metadata:
name: codeserver-python
spec:
template:
spec:
containers:
- name: codeserver
image: docker.io/kubeflownotebookswg/codeserver-python:v1.9.0
ports:
- containerPort: 8888
resources:
requests:
memory: 4Gi
cpu: "2"
volumeMounts:
- name: workspace
mountPath: /home/jovyan/work
volumes:
- name: workspace
persistentVolumeClaim:
claimName: notebook-workspace
需 Kubeflow Profile/RBAC;Istio VirtualService 或 Ingress 提供 TLS,GPU 节点按 taint 调度。