在k8s中使用runtime_env的docker环境时遇到如下错误:
复现:
1、k8s yaml 将pod拉起
apiVersion: v1
kind: Pod
metadata:
name: podman-priv
spec:
containers:
- name: priv
image: quay.io/podman/stable
args:
- sleep
- "1000000"
securityContext:
privileged: true
2、进入pod,安装ray
3、执行脚本
import ray
import os
@ray.remote
def test():
return "hello"
print(ray.get(test.options(runtime_env={"container":
{"image": "registry.access.redhat.com/ubi8:latest","run_options": ["--cap-drop SYS_ADMIN","--log-level=debug"]}
}).remote()))
寻求帮助.