docker容器无进程启动
docker run -i -t c1717d73fd69 /bin/bash
k8s中添加循环使容器保持运行
image: k8s-jingxiang-registry.cn-hangzhou.cr.aliyuncs.com/yaozh.com/nullpython3:v2 name: pod-predict imagePullPolicy: IfNotPresent command: [ "/bin/sh", "-c", "--" ] args: [ "while true; do sleep 30; python3 /data/wwwroot/predict/main.py -i 60 -l /data/wwwlogs/predict/; done;" ]
-
« 上一篇:
103.将ip段写入到redis白名单
-
105.ubuntu常用工具安装
:下一篇 »