k8s常用命令以及docker保存镜像文件
helm拉取镜像文件helm fetch helm镜像helm fetch vcs/spatio-temporal-lasa-adbdocker拉取镜像文件docker save -o 镜像名称.tar 镜像名称带路径docker save -o spatio-temporal-lasa:v3.tar registry.cn-hangzhou.aliyuncs.com/vcs-deploy/spa
helm拉取镜像文件 helm fetch helm镜像
helm fetch vcs/spatio-temporal-lasa-adb
docker拉取镜像文件
docker save -o 镜像名称.tar 镜像名称带路径
docker save -o spatio-temporal-lasa:v3.tar registry.cn-hangzhou.aliyuncs.com/vcs-deploy/spatio-temporal-lasa:v3.0.51.20200701.0440938
对项目文件再压缩spatio-temporal-lasa:v3.tar --force-local转移冒号作用
tar -czvf spatio-temporal-lasa\:v3.tar.gz spatio-temporal-lasa\:v3.tar --force-local
列出压缩文件内容
tar -tzvf spatio-temporal-lasa:v3.tar.gz
解压缩文件
tar -xzvf spatio-temporal-lasa:v3.tar.gz spatio-temporal-lasa:v3.tar
docker命令参考网址:https://www.runoob.com/docker/docker-command-manual.html
安装项目镜像
helm install --name spatio-temporal-lasa ./spatio-temporal-lasa-adb
更新项目镜像
helm upgrade--name spatio-temporal-lasa ./spatio-temporal-lasa-adb
检测项目镜像安装是否成功
helm status spatio-temporal-lasa-adb
kubectl get pods -n vcs | grep spatio-temporal-lasa-adb
更多推荐
所有评论(0)