mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-17 23:50:13 +01:00
Add label definitions that allow containers to override image name and id
This commit is contained in:
parent
76f9cea516
commit
85ea00f3ad
3 changed files with 9 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ func (c Container) SafeImageID() wt.ImageID {
|
|||
// "latest" tag is assumed.
|
||||
func (c Container) ImageName() string {
|
||||
// Compatibility w/ Zodiac deployments
|
||||
imageName, ok := c.getLabelValue(zodiacLabel)
|
||||
imageName, ok := c.getLabelValue(originalImageNameLabel)
|
||||
if !ok {
|
||||
imageName = c.containerInfo.Config.Image
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue