博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
docker 容器部署_根据Docker映像更新已部署的容器
阅读量:2507 次
发布时间:2019-05-11

本文共 873 字,大约阅读时间需要 2 分钟。

docker 容器部署

Here is how you can update a deployed container after you updated the image on Docker Hub.

在Docker Hub上更新映像后,可以通过以下方法更新已部署的容器。

First you stop the container:

首先,您停止容器:

docker stop 

Then you remove the container:

然后删除容器:

docker rm 

Then you pull the image from Docker Hub:

然后从Docker Hub提取图像:

docker pull 

Then you start a new container from the image:

然后,从图像开始一个新的容器:

docker run  ...options

Of course that’s not practical to do manually.

当然,手动执行是不实际的。

Applications like , deployed as a Docker container, lets you setup an automated workflow for watching changes on Docker Hub (or any other image registry) and automatically gracefully shut down an existing container and restart it with the same options that were used to deploy it initially.

像这样的应用程序(已部署为Docker容器),使您可以设置自动化的工作流,以监视Docker Hub(或任何其他映像注册表)上的更改,并自动正常关闭现有容器并使用与部署它相同的选项重新启动它原来。

翻译自:

docker 容器部署

转载地址:http://iomgb.baihongyu.com/

你可能感兴趣的文章
iView 的后台管理系统简易模板 iview-admin-simple
查看>>
写一个自己的搜索引擎(1)
查看>>
NGINX、PHP-FPM开机自动启动
查看>>
python 递归求阶乘
查看>>
ERROR: child process failed, exited with error number 100
查看>>
Java计算器源代码
查看>>
SQLServer视图
查看>>
《Entity Framework 6 Recipes》翻译系列 (3) -----第二章 实体数据建模基础之创建一个简单的模型...
查看>>
入门阶段
查看>>
游戏制作人的职能
查看>>
学生信息管理系统应用ios源码iPad版
查看>>
Android中使用http协议访问网络
查看>>
ASP.NET Core 菜鸟之路:从Startup.cs说起
查看>>
vs win32 & MFC 指针默认位置
查看>>
Join 与 CountDownLatch 之间的区别
查看>>
js存cookie
查看>>
vc6下dll调试
查看>>
Ubuntu apt常用命令
查看>>
struts2 配置(部分)
查看>>
python代码迷之错误(ModuleNotFoundError: No module named 'caffe.proto')
查看>>