Watchtower:一个自动化 Docker 容器基础镜像更新的过程-开源

  • f4_551042
    了解作者
  • 483.9KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-01 10:57
    上传日期
使用 watchtower,您只需将新镜像推送到 Docker Hub 或您自己的镜像注册表,即可更新容器化应用程序的运行版本。 Watchtower 将拉下您的新映像,正常关闭现有容器并使用最初部署时使用的相同选项重新启动它。 Watchtower 是一个应用程序,它将监视您正在运行的 Docker 容器并监视这些容器最初启动的镜像的更改。 如果 watchtower 检测到镜像发生了变化,它会自动使用新镜像重新启动容器。 使用 watchtower,您只需将新镜像推送到 Docker Hub 或您自己的镜像注册表,即可更新容器化应用程序的运行版本。 Watchtower 将拉下您的新映像,正常关闭现有容器并使用最初部署时使用的相同选项重新启动它。
v1.3.0.zip
内容介绍
<div align="center"> # Watchtower A process for automating Docker container base image updates. <br/><br/> [![Circle CI](https://circleci.com/gh/containrrr/watchtower.svg?style=shield)](https://circleci.com/gh/containrrr/watchtower) [![codecov](https://codecov.io/gh/containrrr/watchtower/branch/master/graph/badge.svg?token=8pxWgB380Y)](https://codecov.io/gh/containrrr/watchtower) [![GoDoc](https://godoc.org/github.com/containrrr/watchtower?status.svg)](https://godoc.org/github.com/containrrr/watchtower) [![Microbadger](https://images.microbadger.com/badges/image/containrrr/watchtower.svg)](https://microbadger.com/images/containrrr/watchtower) [![Go Report Card](https://goreportcard.com/badge/github.com/containrrr/watchtower)](https://goreportcard.com/report/github.com/containrrr/watchtower) [![latest version](https://img.shields.io/github/tag/containrrr/watchtower.svg)](https://github.com/containrrr/watchtower/releases) [![Apache-2.0 License](https://img.shields.io/github/license/containrrr/watchtower.svg)](https://www.apache.org/licenses/LICENSE-2.0) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/1c48cfb7646d4009aa8c6f71287670b8)](https://www.codacy.com/gh/containrrr/watchtower/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=containrrr/watchtower&amp;utm_campaign=Badge_Grade) [![All Contributors](https://img.shields.io/github/all-contributors/containrrr/watchtower)](#contributors) [![Pulls from DockerHub](https://img.shields.io/docker/pulls/containrrr/watchtower.svg)](https://hub.docker.com/r/containrrr/watchtower) </div> ## Quick Start With watchtower you can update the running version of your containerized app simply by pushing a new image to the Docker Hub or your own image registry. Watchtower will pull down your new image, gracefully shut down your existing container and restart it with the same options that were used when it was deployed initially. Run the watchtower container with the following command: ``` $ docker run -d \ --name watchtower \ -v /var/run/docker.sock:/var/run/docker.sock \ containrrr/watchtower ``` ## Documentation The full documentation is available at https://containrrr.dev/watchtower. ## Contributors Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- prettier-ignore-start --> <!-- markdownlint-disable --> <table> <tr> <td align="center"><a href="http://codelica.com" rel='nofollow' onclick='return false;'><img src="https://avatars3.githubusercontent.com/u/386101?v=4?s=100" width="100px;" alt=""/><br /><sub><b>James</b></sub></a><br /><a href="https://github.com/containrrr/watchtower/commits?author=Codelica" title="Tests" rel='nofollow' onclick='return false;'>⚠️</a> <a href="#ideas-Codelica" title="Ideas, Planning, & Feedback" rel='nofollow' onclick='return false;'>🤔</a></td> <td align="center"><a href="https://kopfkrieg.org" rel='nofollow' onclick='return false;'><img src="https://avatars2.githubusercontent.com/u/5047813?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Florian</b></sub></a><br /><a href="https://github.com/containrrr/watchtower/pulls?q=is%3Apr+reviewed-by%3AKopfKrieg" title="Reviewed Pull Requests" rel='nofollow' onclick='return false;'>👀</a> <a href="https://github.com/containrrr/watchtower/commits?author=KopfKrieg" title="Documentation" rel='nofollow' onclick='return false;'>📖</a></td> <td align="center"><a href="https://github.com/bdehamer" rel='nofollow' onclick='return false;'><img src="https://avatars1.githubusercontent.com/u/398027?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Brian DeHamer</b></sub></a><br /><a href="https://github.com/containrrr/watchtower/commits?author=bdehamer" title="Code" rel='nofollow' onclick='return false;'>💻</a> <a href="#maintenance-bdehamer" title="Maintenance" rel='nofollow' onclick='return false;'>🚧</a></td> <td align="center"><a href="https://github.com/rosscado" rel='nofollow' onclick='return false;'><img src="https://avatars1.githubusercontent.com/u/16578183?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ross Cadogan</b></sub></a><br /><a href="https://github.com/containrrr/watchtower/commits?author=rosscado" title="Code" rel='nofollow' onclick='return false;'>💻</a></td> <td align="center"><a href="https://github.com/stffabi" rel='nofollow' onclick='return false;'><img src="https://avatars0.githubusercontent.com/u/9464631?v=4?s=100" width="100px;" alt=""/><br /><sub><b>stffabi</b></sub></a><br /><a href="https://github.com/containrrr/watchtower/commits?author=stffabi" title="Code" rel='nofollow' onclick='return false;'>💻</a> <a href="#maintenance-stffabi" title="Maintenance" rel='nofollow' onclick='return false;'>🚧</a></td> <td align="center"><a href="https://github.com/ATCUSA" rel='nofollow' onclick='return false;'><img src="https://avatars3.githubusercontent.com/u/3581228?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Austin</b></sub></a><br /><a href="https://github.com/containrrr/watchtower/commits?author=ATCUSA" title="Documentation" rel='nofollow' onclick='return false;'>📖</a></td> <td align="center"><a href="https://labs.ctl.io" rel='nofollow' onclick='return false;'><img src="https://avatars2.githubusercontent.com/u/6181487?v=4?s=100" width="100px;" alt=""/><br /><sub><b>David Gardner</b></sub></a><br /><a href="https://github.com/containrrr/watchtower/pulls?q=is%3Apr+reviewed-by%3Adavidgardner11" title="Reviewed Pull Requests" rel='nofollow' onclick='return false;'>👀</a> <a href="https://github.com/containrrr/watchtower/commits?author=davidgardner11" title="Documentation" rel='nofollow' onclick='return false;'>📖</a></td> </tr> <tr> <td align="center"><a href="https://github.com/dolanor" rel='nofollow' onclick='return false;'><img src="https://avatars3.githubusercontent.com/u/928722?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tanguy ⧓ Herrmann</b></sub></a><br /><a href="https://github.com/containrrr/watchtower/commits?author=dolanor" title="Code" rel='nofollow' onclick='return false;'>💻</a></td> <td align="center"><a href="https://github.com/rdamazio" rel='nofollow' onclick='return false;'><img src="https://avatars3.githubusercontent.com/u/997641?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rodrigo Damazio Bovendorp</b></sub></a><br /><a href="https://github.com/containrrr/watchtower/commits?author=rdamazio" title="Code" rel='nofollow' onclick='return false;'>💻</a> <a href="https://github.com/containrrr/watchtower/commits?author=rdamazio" title="Documentation" rel='nofollow' onclick='return false;'>📖</a></td> <td align="center"><a href="https://www.taisun.io/" rel='nofollow' onclick='return false;'><img src="https://avatars3.githubusercontent.com/u/1852688?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ryan Kuba</b></sub></a><br /><a href="#infra-thelamer" title="Infrastructure (Hosting, Build-Tools, etc)" rel='nofollow' onclick='return false;'>🚇</a></td> <td align="center"><a href="https://github.com/cnrmck" rel='nofollow' onclick='return false;'><img src="https://avatars2.githubusercontent.com/u/22061955?v=4?s=100" width="100px;" alt=""/><br /><sub><b>cnrmck</b></sub></a><br /><a href="https://github.com/containrrr/watchtower/commits?author=cnrmck" title="Documentation" rel='nofollow' onclick='return false;'>📖</a></td> <td align="center"><a href="http://harrywalter.co.uk" rel='nofollow' onclick='return false;'><img src="https://avatars3.githubusercontent.com/u/338588?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Harry Walter</b></sub></a><br /><a href="https://github.com/containrrr/watchtower/commits?author=haswalt" title="Code" rel='nofollow' onclick='return false;'>💻</a></td> <td align="center"><a href="http://projectsperanza.com" rel='nofollow' onclick='return false;'><img src="https://avatars3.githubusercontent.com/u/74515?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Robotex</b></sub></a><br /><a href="https://github.com/containrrr/watchtower/commits?author=Robotex" title="Documentation" rel='nofollow' onclick='return false;'>📖</a></td> <td align="center"><a href="http://geraldpape.io" rel='nofollow' onclick='return false;'><img src="https://avatars0.githubusercontent.com/u/1494211?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Gerald Pape</b></sub></a><br /><a href="https://github.com/containrrr/watchtower/commits?author=ubergesundheit" title="Documentation" rel='nofollow' onclick='return false;'>📖</a></td> </tr> <tr> <td align="center"><a href="https://github.com/fomk" rel='nofollow' onclick='return false;'><img src="https://avatars0.githubusercontent.com/u/17636183?v=4?s=100" width="100px;" alt=""/><br /><sub><b>fomk</b></sub></a><br /><a href="https://github.com/containrrr/watchtower/commits?author=fomk" title="Code" rel='nofollow' onclick='return false;'>💻</a></td> <td align="center"><a href="https://github.com/svengo" rel='nofollow' onclick='return false;'><img src="https://avatars3.githubusercontent.com/u/2502366?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sven Gottwald</b></sub></a><br /><a href="#infra-svengo" title="Infrastructure (Hosting, Build-Tools, etc)" rel='nofollow' onclick='return false;'>🚇</a></td> <td align="center"><a href="https://liberapay.com/techknowlogic
评论
    相关推荐
    • docker:Weblate的Docker容器
      docker:Weblate的Docker容器
    • cassandra:Docker Cassandra容器
      这是图像和脚本的集合,可帮助您在Docker容器中运行Cassandra。 这些映像非常适合为测试和开发目的提供临时的Cassandra拓扑。 目前支持: 单个Cassandra节点 运行工具的客户端容器,例如cqlsh,nodetool等。 多...
    • 京东Docker容器实践
      京东Docker容器实践
    • machine:在 Docker 容器内运行 Docker Machine
      Docker 容器内运行 Docker Machine 利用 Docker-in-Docker,因此工作方式相同。 只有一个要求:您的 Docker 版本应该支持--privileged标志。 快速开始 构建图像: docker build -t machine . 在 Docker-in-...
    • docker_bridge_network:Docker容器Docker网络的描述
      了解Docker容器网络 通过SMLEE <docker0> 笔记 下图是码头工人网络结构的简单示意图。 在这里,我们看一下在安装docker时首先可以看到的docker0接口和容器网络。 1. docker0接口 如果在安装Docker主机后查看主机的...
    • zephir-docker:Zephir Docker 容器
      Zephir Docker 容器 启动2docker 我在测试。 $ boot2docker up 用法 安装 $ docker pull shin1x1/zephir $ docker run shin1x1/zephir _____ __ _ /__ / ___ ____ / /_ (_)____ / / / _ \/ __ \/ __ \/ / ___/...
    • Docker容器Python
      Docker容器Python 这是从头开始构建容器 自己构建容器并推送到Docker Hub 建立影像 (如果您想发展自己) docker build --tag yisongzou / docker_container_python:project2。 列出Docker映像 码头工人形象ls ...
    • cfe-docker:创建托管 Docker 容器
      使用托管进程创建 Docker 容器Docker 监视每个正在运行的容器中的一个进程,并且容器与该进程一起生存或死亡。 通过在 Docker 容器中引入 CFEngine,我们可以缓解一些可能出现的问题: 可以使用普通的docker ...
    • funker:充当Docker容器
      funker:充当Docker容器
    • iDocker:iServermate Docker容器
      iDocker的 iServermate泊坞窗容器