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:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user