Make sure docker api client implements engine-api client.

- Use the master interface in the new repo.
- Use new structures for container create, update and network connect.

Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: e73ab750edc006324d1019b828c8ec9c551b9717
Component: engine
This commit is contained in:
David Calavera
2016-01-07 19:47:12 -05:00
parent 14985d55be
commit dbccbefa60
5 changed files with 6 additions and 78 deletions

View File

@ -107,7 +107,7 @@ func (cli *DockerCli) createContainer(config *container.Config, hostConfig *cont
}
//create the container
response, err := cli.client.ContainerCreate(config, hostConfig, name)
response, err := cli.client.ContainerCreate(config, hostConfig, nil, name)
//if image not found try to pull it
if err != nil {
if client.IsErrImageNotFound(err) {
@ -124,7 +124,7 @@ func (cli *DockerCli) createContainer(config *container.Config, hostConfig *cont
}
// Retry
var retryErr error
response, retryErr = cli.client.ContainerCreate(config, hostConfig, name)
response, retryErr = cli.client.ContainerCreate(config, hostConfig, nil, name)
if retryErr != nil {
return nil, retryErr
}