Merge pull request #39255 from thaJeztah/fix_windows_errortype

Windows: fix error-type for starting a running container
This commit is contained in:
Brian Goff 2019-05-28 09:46:51 -07:00 committed by GitHub
commit cefc60ccfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -607,7 +607,7 @@ func (c *client) Start(_ context.Context, id, _ string, withStdin bool, attachSt
case ctr == nil:
return -1, errors.WithStack(errdefs.NotFound(errors.New("no such container")))
case ctr.init != nil:
return -1, errors.WithStack(errdefs.Conflict(errors.New("container already started")))
return -1, errors.WithStack(errdefs.NotModified(errors.New("container already started")))
}
logger := c.logger.WithField("container", id)