011-WebStorm打最新Vue docker项目,提交镜像到Docker Hub,Centos拉取最新docker镜像,Portainer部署最

点我查看-有道云笔记原文链接:
011-WebStorm打最新Vue docker项目,提交镜像到Docker Hub,Centos拉取最新docker镜像,Portainer部署最新镜像
MacBook本地操作
一、WebStorm开发项目-npm run server本地查看及时效果;
二、npm run build 编译使以上开发效果生效;
三、macbook 本地docker 可视化UI 部署刚WebStorm打镜像版本查看效果;
四、macbook 本地docker 可视化UI提交Docker Hub,Docker Hub更新本次更新提交内容;


远端服务器操作
一、Centos docker Search XXX
[root@VM-8-5-centos ~]# docker search vue_home
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
wvqusrtg/vue_home vue项目docker部署实例 0
[root@VM-8-5-centos ~]# docker search vue_home
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
wvqusrtg/vue_home vue项目docker-vue学习进度更新-by:nixs 2021年… 0

二、Centos拉取最新docker镜像-指定tag,注:如果一次拉取失败建议重试,网络条件不好中断几率还是比较高的
[root@VM-8-5-centos ~]# docker pull wvqusrtg/vue_home:0.04
0.04: Pulling from wvqusrtg/vue_home
a330b6cecb98: Already exists
5ef80e6f29b5: Already exists
f699b0db74e3: Already exists
0f701a34c55e: Already exists
3229dce7b89c: Already exists
ddb78cb2d047: Already exists
446e211e4d39: Already exists
Digest: sha256:7613c5557b2c399860e52f35961a6da9de43e00375f57216d05da2ec7a6130b4
Status: Downloaded newer image for wvqusrtg/vue_home:0.04
docker.io/wvqusrtg/vue_home:0.04

三、查看本地镜像列表
[root@VM-8-5-centos ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wvqusrtg/vue_home 0.04 b7ed5bb341bf 10 minutes ago 134MB
wvqusrtg/vue_home 0.03 789f439ac27c 4 days ago 134MB
zhengxi 1.0.1 4c9738ae05f8 3 months ago 896MB
portainer/portainer latest 580c0e4e98b0 5 months ago 79.1MB
[root@VM-8-5-centos ~]#

四、使用Portainer 使用最新镜像wvqusrtg/vue_home:0.04 重新部署应用

参考:
如何更新docker容器镜像

猜你喜欢

转载自blog.csdn.net/wvqusrtg/article/details/120244658