北京外包做網(wǎng)站如何報價杭州seo外包服務(wù)
文章目錄
- 1. 鏡像轉(zhuǎn)存需求
- 2. 注冊并登陸 killercoda URL
- 3. 打開playground
- 4. 在線拉取K8S鏡像并打上標(biāo)簽
- 5. 推送K8S鏡像到Docker私有倉庫
- 6. 登陸Docker私有倉庫查看
1. 鏡像轉(zhuǎn)存需求
因K8S鏡像在不開代理的情況下,拉取超時、下載緩慢,導(dǎo)致鏡像拉取不下來?,F(xiàn)在通過在線交互學(xué)習(xí)平臺,進(jìn)行拉取,后轉(zhuǎn)存到docker私有倉庫,再進(jìn)行拉取,可以解決鏡像拉取、下載失敗等問題。
2. 注冊并登陸 killercoda URL
注冊URL:Killercoda Interactive Environments
- 選擇登陸方式
- 輸入郵箱地址
- 前往郵件后臺,查收郵件。
- 點擊
click here to login
。
- 授權(quán)等待中…
- 注冊登陸完成。
3. 打開playground
4. 在線拉取K8S鏡像并打上標(biāo)簽
controlplane $ docker pull k8s.gcr.io/autoscaling/vpa-admission-controller:0.13.0
0.13.0: Pulling from autoscaling/vpa-admission-controller
fc251a6e7981: Pull complete
da7e855a5a9b: Pull complete
Digest: sha256:c857dcbfc071bcdd25bd9835955eda2c05e8846f638d0556475e4b40f2fbd294
Status: Downloaded newer image for k8s.gcr.io/autoscaling/vpa-admission-controller:0.13.0
k8s.gcr.io/autoscaling/vpa-admission-controller:0.13.0controlplane $ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
k8s.gcr.io/autoscaling/vpa-admission-controller 0.13.0 b285911b0ebb 13 months ago 53.9MB
xybdiy/vpa-admission-controller 0.12.0 f4325d883003 18 months ago 53.9MB
k8s.gcr.io/autoscaling/vpa-admission-controller 0.12.0 f4325d883003 18 months ago 53.9MBcontrolplane $ docker tag k8s.gcr.io/autoscaling/vpa-admission-controller:0.13.0 xybdiy/vpa-admission-controller:0.13.0
controlplane $ controlplane $ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
xybdiy/vpa-admission-controller 0.13.0 b285911b0ebb 13 months ago 53.9MB
k8s.gcr.io/autoscaling/vpa-admission-controller 0.13.0 b285911b0ebb 13 months ago 53.9MB
k8s.gcr.io/autoscaling/vpa-admission-controller 0.12.0 f4325d883003 18 months ago 53.9MB
xybdiy/vpa-admission-controller 0.12.0 f4325d883003 18 months ago 53.9MB
controlplane $
5. 推送K8S鏡像到Docker私有倉庫
controlplane $ docker login
Authenticating with existing credentials...
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-storeLogin Succeeded
controlplane $ docker push xybdiy/vpa-admission-controller:0.13.0
The push refers to repository [docker.io/xybdiy/vpa-admission-controller]
3fe018b48e98: Pushed
cb60fb9b862c: Pushed
0.13.0: digest: sha256:28b0ca918c58debf94334c56404223490c475daa2abb2d91bdfc15533ca8df5e size: 739
6. 登陸Docker私有倉庫查看
URL:https://hub.docker.com/