Skip to content

Commit

Permalink
Merge pull request #42 from stffabi/upstream_SelfUpdateFix
Browse files Browse the repository at this point in the history
Fix for watchtower self update
  • Loading branch information
stffabi committed Jan 24, 2017
2 parents bb99ea1 + edfad5b commit 5902e9e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions container/client.go
Expand Up @@ -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) {
Expand Down

0 comments on commit 5902e9e

Please sign in to comment.