mirror of
https://github.com/docker/docs.git
synced 2026-03-31 16:28:59 +07:00
Merge pull request #1335 from vieux/fix_panic
fix panic when createContainer returns nil,nil
This commit is contained in:
@@ -152,7 +152,7 @@ func (c *Cluster) createContainer(config *cluster.ContainerConfig, name string,
|
||||
engine, ok := c.engines[n.ID]
|
||||
if !ok {
|
||||
c.scheduler.Unlock()
|
||||
return nil, nil
|
||||
return nil, fmt.Errorf("error creating container")
|
||||
}
|
||||
|
||||
c.pendingContainers[swarmID] = &pendingContainer{
|
||||
|
||||
Reference in New Issue
Block a user