mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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:
parent
d8e090669e
commit
54f8ba7e9e
1 changed files with 1 additions and 2 deletions
|
@ -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 != "" {
|
||||
|
|
Loading…
Reference in a new issue