install安装时报错、Setup local registry [Failed]
jiangshihao01 opened this issue · comments
What happened:
2023-04-07 15:19:42.237 info tke-installer docker run -d
--name registry-https
--restart always
-p 443:443
-v /opt/tke-installer/registry:/var/lib/registry
-v registry-certs:/certs
-e REGISTRY_HTTP_ADDR=0.0.0.0:443
-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/server.crt
-e REGISTRY_HTTP_TLS_KEY=/certs/server.key registry.tke.com/library/registry-amd64:2.7.1
2023-04-07 15:19:42.334 info tke-installer 0e3c8fbeb7245bb07396b70b63a338f59d10fc55b41dc1cb8b2dd702dcfbcca7
2023-04-07 15:19:42.517 error tke-installer 2.Setup local registry [Failed] [0.708894s] error open hosts: operation not permitted
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
创建的腾讯云主机,installer和global都在同一个vpc的同一个子网下,并能够通过root 账密正常登陆
Environment:
- TKE version:v1.3.1
- Global or business cluster:
- Kubernetes version (use
kubectl version
): - Install addons:
- Others:
已解决,通过设置 chattr -i /etc/hosts