1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 22:32:14 +00:00

Updates for upstream docker client

This commit is contained in:
Darren Shepherd
2015-03-14 21:34:05 -07:00
parent 7dc4df73cb
commit a94fa20b42

View File

@@ -259,7 +259,7 @@ func (c *Container) renameCurrent(client *dockerClient.Client) error {
return nil
}
err := client.RenameContainer(c.Container.ID, c.Name)
err := client.RenameContainer(dockerClient.RenameContainerOptions{ID: c.Container.ID, Name: c.Name})
if err != nil {
return err
}
@@ -274,7 +274,7 @@ func (c *Container) renameOld(client *dockerClient.Client, opts *dockerClient.Cr
}
existing, err := inspect(client, opts.Name)
if _, ok := err.(dockerClient.NoSuchContainer); ok {
if _, ok := err.(*dockerClient.NoSuchContainer); ok {
return nil
}
@@ -306,7 +306,7 @@ func (c *Container) renameOld(client *dockerClient.Client, opts *dockerClient.Cr
}
log.Debugf("Renaming %s to %s", existing.Name, newName)
return client.RenameContainer(existing.ID, newName)
return client.RenameContainer(dockerClient.RenameContainerOptions{ID: existing.ID, Name: newName})
}
func (c *Container) getCreateOpts(client *dockerClient.Client) (*dockerClient.CreateContainerOptions, error) {