Support for --cleanup flag

The --cleanup flag will cause watchtower to automatically remove the old
image after a container is restart with a new image.
This commit is contained in:
Brian DeHamer 2015-07-31 18:24:27 +00:00
parent b8ba80df2d
commit dd80aa4a0d
10 changed files with 117 additions and 7 deletions

View file

@ -34,6 +34,10 @@ func (c Container) Name() string {
return c.containerInfo.Name
}
func (c Container) ImageID() string {
return c.imageInfo.Id
}
func (c Container) ImageName() string {
imageName := c.containerInfo.Config.Image