谷粒商城部署服务(五十二)
391-400 上传镜像运行
把镜像上传到dockerhub太卡了,就上传到阿里云镜像,我虚拟机也有Harbor,不过为了和视频一样就不折腾了。
这里也要修改,不然码云上会有一样重复的标签
打包nginx推送到dockerhub,只是演示一下
[root@test ~]# docker load -i nginx.tar
5d6cbe0dbcf9: Loading layer [==================================================>] 129.2MB/129.2MB
db9dceda8ac9: Loading layer [==================================================>] 60.31MB/60.31MB
de344a0ad635: Loading layer [==================================================>] 3.584kB/3.584kB
b123e547949d: Loading layer [==================================================>] 13.31kB/13.31kB
Loaded image: dalianpai/gulimall-nginx:v1.2
[root@test ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
dalianpai/gulimall-nginx v1.2 044a9c2ed06c 15 minutes ago 182MB
wkhtmltopdf v1.0 bcd7d3f4ed91 2 days ago 794MB
minio/minio latest cfa3d828d9da 2 weeks ago 61.9MB
centos latest 0d120b6ccaa8 2 weeks ago 215MB
nacos/nacos-server latest ef8e53226440 3 weeks ago 914MB
qbanxiaoli/fastdfs latest 87fb9d2c4b8b 4 weeks ago 664MB
influxdb 1.8.0 95750833bc56 2 months ago 304MB
chronograf 1.8 b507b55579c8 3 months ago 194MB
nacos/nacos-mysql 5.7 72037eccf264 5 months ago 373MB
grafana/grafana 6.5.2 7a40c3c56100 8 months ago 228MB
docker.elastic.co/elasticsearch/elasticsearch 6.8.5 4f90d9a6692f 9 months ago 866MB
skywalking/ui latest e92cfedfe6ba 19 months ago 266MB
skywalking/oap latest f5602f687459 19 months ago 266MB
quay.io/coreos/flannel v0.11.0-amd64 ff281650a721 19 months ago 52.6MB
elasticsearch 6.4.0 1ac676545731 2 years ago 791MB
[root@test ~]# docker push dalianpai/gulimall-nginx:v1.2
The push refers to repository [docker.io/dalianpai/gulimall-nginx]
b123e547949d: Pushed
de344a0ad635: Pushed
db9dceda8ac9: Pushed
5d6cbe0dbcf9: Pushed
v1.2: digest: sha256:4e745b6316594d306d0ea6615ae9e9a169e58eafcc6804aeba4881bd85645034 size: 1155
[root@test ~]#
演示把gateway上传到阿里云镜像仓库
[root@k8s-master ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
dalianpai/gulimall-nginx v1.2 044a9c2ed06c 29 minutes ago 182MB
registry.cn-hangzhou.aliyuncs.com/dalianpai/gulimall-nginx v1.2 044a9c2ed06c 29 minutes ago 182MB
dalianpai/gulimall-gateway SNAPSHOT-prod-16 f5af952ddfde 3 hours ago 741MB
dalianpai/gulimall-gateway latest f5af952ddfde 3 hours ago 741MB
dalianpai/gulimall-gateway v1.9 f5af952ddfde 3 hours ago 741MB
192.168.1.120:8001/tensquare_k8s/tensquare_eureka_server latest 08d8d965ec4f 2 months ago 150MB
osixia/openldap 1.3.0 faac9bb59f83 3 months ago 260MB
kubesphere/ks-console v2.1.1 41db3a4d85d3 6 months ago 82.9MB
kubesphere/ks-controller-manager v2.1.1 0dea482bc882 6 months ago 105MB
kubesphere/ks-account v2.1.1 07ba6b17a4da 6 months ago 78.7MB
kubesphere/ks-apiserver v2.1.1 6ef3420d5186 6 months ago 78.7MB
kubesphere/ks-apigateway v2.1.1 bdcb3087f269 6 months ago 84.8MB
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy v1.17.3 ae853e93800d 6 months ago 116MB
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver v1.17.3 90d27391b780 6 months ago 171MB
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager v1.17.3 b0f1517c1f4b 6 months ago 161MB
registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler v1.17.3 d109c0821a2b 6 months ago 94.4MB
alpine 3.10.4 af341ccd2df8 7 months ago 5.56MB
kubesphere/fluent-bit v1.3.5-reload e3492586986b 7 months ago 53.6MB
quay.io/openebs/node-disk-manager-amd64 v0.4.5 8b16656c5080 8 months ago 165MB
quay.io/openebs/snapshot-provisioner 1.5.0 1900bbdb7100 8 months ago 76.2MB
quay.io/openebs/snapshot-controller 1.5.0 eb9f51dd5072 8 months ago 75.1MB
quay.io/openebs/openebs-k8s-provisioner 1.5.0 1d8ed3945c9b 8 months ago 162MB
kubesphere/builder-maven v2.1.0 5e0ea9c66683 9 months ago 1.34GB
registry.cn-hangzhou.aliyuncs.com/google_containers/coredns 1.6.5 70f311871ae1 9 months ago 41.6MB
registry.cn-hangzhou.aliyuncs.com/google_containers/etcd 3.4.3-0 303ce5db0e90 10 months ago 288MB
kubesphere/kubectl v1.0.0 7f81664a09d0 10 months ago 82.1MB
redis 5.0.5-alpine ed7d2ff5a623 12 months ago 29.3MB
kubesphere/node-exporter ks-v0.16.0 c6eb612e18e4 18 months ago 22.3MB
quay.io/coreos/flannel v0.11.0-amd64 ff281650a721 19 months ago 52.6MB
quay.io/coreos/kube-rbac-proxy v0.4.1 70eeaa7791f2 19 months ago 41.3MB
kubesphere/kube-rbac-proxy v0.4.1 70eeaa7791f2 19 months ago 41.3MB
jenkins/jnlp-slave 3.27-1 6bf8f3767d8b 22 months ago 628MB
lizhenliang/nfs-client-provisioner latest 16d2f904b0d8 24 months ago 45.5MB
registry.cn-hangzhou.aliyuncs.com/google_containers/pause 3.1 da86e6ba6ca1 2 years ago 742kB
java 8 d23bdf5b1b1b 3 years ago 643MB
kubesphere/configmap-reload v0.0.1 3129a2ca29d7 3 years ago 4.79MB
[root@k8s-master ~]# docker push registry.cn-hangzhou.aliyuncs.com/dalianpai/gulimall-nginx:1.2
The push refers to repository [registry.cn-hangzhou.aliyuncs.com/dalianpai/gulimall-nginx]
tag does not exist: registry.cn-hangzhou.aliyuncs.com/dalianpai/gulimall-nginx:1.2
[root@k8s-master ~]# docker push registry.cn-hangzhou.aliyuncs.com/dalianpai/gulimall-nginx:v1.2
The push refers to repository [registry.cn-hangzhou.aliyuncs.com/dalianpai/gulimall-nginx]
b123e547949d: Pushed
de344a0ad635: Pushed
db9dceda8ac9: Pushed
5d6cbe0dbcf9: Pushed
v1.2: digest: sha256:4e745b6316594d306d0ea6615ae9e9a169e58eafcc6804aeba4881bd85645034 size: 1155
[root@k8s-master ~]#
结果图如下: