适配 k8s 部署
通过 ‘su node -s /bin/sh -c 'node openclaw.mjs onboard' 来设置配置
### 方式二:手动登录
```bash
# 先启动容器(不设置 TS_AUTHKEY)
docker run -d --name openclaw heiye1024/openclaw:2026.3.7
# 进入容器手动登录
docker exec -it openclaw tailscale up
# 会输出一个 URL,在浏览器中打开并授权即可
| 变量名 | 必填 | 默认值 | 说明 |
|---|---|---|---|
TS_AUTHKEY | 否 | - | Tailscale Auth Key,设置后自动登录 |
TS_HOSTNAME | 否 | openclaw | 在 Tailscale 网络中显示的主机名 |
tskey-auth-... 格式的密钥apiVersion: apps/v1
kind: Deployment
metadata:
name: openclaw
spec:
replicas: 1
selector:
matchLabels:
app: openclaw
template:
metadata:
labels:
app: openclaw
spec:
containers:
- name: openclaw
image: heiye1024/openclaw:2026.3.7
env:
- name: TS_AUTHKEY
valueFrom:
secretKeyRef:
name: tailscale-auth
key: authkey
- name: TS_HOSTNAME
value: "openclaw"
创建 Secret:
kubectl create secret generic tailscale-auth \
--from-literal=authkey=tskey-auth-xxxxx
You are logged out 日志这是 tailscaled 的提示,说明 Tailscale 守护进程已启动但未登录。请确认:
TS_AUTHKEY 环境变量docker exec -it openclaw tailscale status
docker run -d \
--name openclaw \
-e TS_AUTHKEY=tskey-auth-xxxxx \
-e TS_HOSTNAME=openclaw \
heiye1024/openclaw:2026.3.7
# Start the container without TS_AUTHKEY
docker run -d --name openclaw heiye1024/openclaw:2026.3.7
# Manually login from inside the container
docker exec -it openclaw tailscale up
# A URL will be printed — open it in your browser to authorize
| Variable | Required | Default | Description |
|---|---|---|---|
TS_AUTHKEY | No | - | Tailscale Auth Key for automatic login |
TS_HOSTNAME | No | openclaw | Hostname displayed in the Tailscale network |
tskey-auth-... keyapiVersion: apps/v1
kind: Deployment
metadata:
name: openclaw
spec:
replicas: 1
selector:
matchLabels:
app: openclaw
template:
metadata:
labels:
app: openclaw
spec:
containers:
- name: openclaw
image: heiye1024/openclaw:2026.3.7
env:
- name: TS_AUTHKEY
valueFrom:
secretKeyRef:
name: tailscale-auth
key: authkey
- name: TS_HOSTNAME
value: "openclaw"
Create the Secret:
kubectl create secret generic tailscale-auth \
--from-literal=authkey=tskey-auth-xxxxx
Content type
Image
Digest
sha256:afc949ad9…
Size
751.6 MB
Last updated
6 months ago
docker pull heiye1024/openclaw:2026.4.15