How to automatically update your docker containers, if base-images are updated

后端 未结 16 751
别那么骄傲
别那么骄傲 2020-12-04 04:17

Say I have a trivial container based on the ubuntu:latest. Now there is a security update and ubuntu:latest is updated in the docker repo .

16条回答
  •  感动是毒
    2020-12-04 05:07

    A 'docker way' would be to use docker hub automated builds. The Repository Links feature will rebuild your container when an upstream container is rebuilt, and the Webhooks feature will send you a notification.

    It looks like the webhooks are limited to HTTP POST calls. You'd need to set up a service to catch them, or maybe use one of the POST to email services out there.

    I haven't looked into it, but the new Docker Universal Control Plane might have a feature for detecting updated containers and re-deploying.

提交回复
热议问题