本文共 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/