You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
626 B

3 years ago
# 创建Docker镜像下载secret
创建一个镜像下载secret
```bash
kubectl create secret generic registry-bing89 --from-file=.dockerconfigjson=/root/.docker/config.json --type=kubernetes.io/dockerconfigjson
```
或者
```bash
kubectl create secret docker-registry myregistrykey --docker-server=registry.bing89.com --docker-username=admin --docker-password=abcd1234 --docker-email=kun1.huang@outlook.com
2 years ago
```
```bash
kubectl -n soulma-k8s-system create secret docker-registry txcloud --docker-server=ccr.ccs.tencentyun.com --docker-username=100004225373 --docker-password=Hello2022 --docker-email=766619031@qq.com
3 years ago
```