|
@@ -3,24 +3,23 @@ package daemon
|
|
|
import (
|
|
|
"fmt"
|
|
|
|
|
|
- "github.com/docker/docker/api/types"
|
|
|
"github.com/docker/docker/api/types/container"
|
|
|
)
|
|
|
|
|
|
// ContainerUpdate updates configuration of the container
|
|
|
-func (daemon *Daemon) ContainerUpdate(name string, hostConfig *container.HostConfig, validateHostname bool) (types.ContainerUpdateResponse, error) {
|
|
|
+func (daemon *Daemon) ContainerUpdate(name string, hostConfig *container.HostConfig, validateHostname bool) (container.ContainerUpdateOKBody, error) {
|
|
|
var warnings []string
|
|
|
|
|
|
warnings, err := daemon.verifyContainerSettings(hostConfig, nil, true, validateHostname)
|
|
|
if err != nil {
|
|
|
- return types.ContainerUpdateResponse{Warnings: warnings}, err
|
|
|
+ return container.ContainerUpdateOKBody{Warnings: warnings}, err
|
|
|
}
|
|
|
|
|
|
if err := daemon.update(name, hostConfig); err != nil {
|
|
|
- return types.ContainerUpdateResponse{Warnings: warnings}, err
|
|
|
+ return container.ContainerUpdateOKBody{Warnings: warnings}, err
|
|
|
}
|
|
|
|
|
|
- return types.ContainerUpdateResponse{Warnings: warnings}, nil
|
|
|
+ return container.ContainerUpdateOKBody{Warnings: warnings}, nil
|
|
|
}
|
|
|
|
|
|
// ContainerUpdateCmdOnBuild updates Path and Args for the container with ID cID.
|