RenameContainer implemented, this fixes the problem that watchtower can't update itself.

This commit is contained in:
Fabrizio Steiner 2017-01-07 00:46:13 +01:00
parent 180806c1cb
commit edfad5b786

View file

@ -132,10 +132,9 @@ func (client dockerClient) StartContainer(c Container) error {
} }
func (client dockerClient) RenameContainer(c Container, newName string) 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) log.Debugf("Renaming container %s (%s) to %s", c.Name(), c.ID(), newName)
//return client.api.ContainerRename(c.ID(), newName) return client.api.ContainerRename(bg, c.ID(), newName)
// no op
return nil
} }
func (client dockerClient) IsContainerStale(c Container) (bool, error) { func (client dockerClient) IsContainerStale(c Container) (bool, error) {