mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-13 21:56:38 +01:00
RenameContainer implemented, this fixes the problem that watchtower can't update itself.
This commit is contained in:
parent
180806c1cb
commit
edfad5b786
1 changed files with 2 additions and 3 deletions
|
|
@ -132,10 +132,9 @@ func (client dockerClient) StartContainer(c Container) error {
|
|||
}
|
||||
|
||||
func (client dockerClient) RenameContainer(c Container, newName string) error {
|
||||
bg := context.Background()
|
||||
log.Debugf("Renaming container %s (%s) to %s", c.Name(), c.ID(), newName)
|
||||
//return client.api.ContainerRename(c.ID(), newName)
|
||||
// no op
|
||||
return nil
|
||||
return client.api.ContainerRename(bg, c.ID(), newName)
|
||||
}
|
||||
|
||||
func (client dockerClient) IsContainerStale(c Container) (bool, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue