зеркало из https://github.com/microsoft/docker.git
Revert create return parameter removal
Cleanup does not happen if retErr is not set on return Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
Родитель
d8e090669e
Коммит
54f8ba7e9e
|
@ -42,13 +42,12 @@ func (daemon *Daemon) ContainerCreate(params types.ContainerCreateConfig) (types
|
|||
}
|
||||
|
||||
// Create creates a new container from the given configuration with a given name.
|
||||
func (daemon *Daemon) create(params types.ContainerCreateConfig) (*container.Container, error) {
|
||||
func (daemon *Daemon) create(params types.ContainerCreateConfig) (retC *container.Container, retErr error) {
|
||||
var (
|
||||
container *container.Container
|
||||
img *image.Image
|
||||
imgID image.ID
|
||||
err error
|
||||
retErr error
|
||||
)
|
||||
|
||||
if params.Config.Image != "" {
|
||||
|
|
Загрузка…
Ссылка в новой задаче