2022-01-17 11:47:51 +08:00
|
|
|
# 创建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
|
2022-06-18 16:02:45 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
2022-06-21 09:58:12 +08:00
|
|
|
kubectl -n soulma create secret docker-registry txcloud --docker-server=ccr.ccs.tencentyun.com --docker-username=100004225373 --docker-password=Hello2022 --docker-email=766619031@qq.com
|
2022-01-17 11:47:51 +08:00
|
|
|
```
|