浏览代码

Merge pull request #39255 from thaJeztah/fix_windows_errortype

Windows: fix error-type for starting a running container
Brian Goff 6 年之前
父节点
当前提交
cefc60ccfa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libcontainerd/local/local_windows.go

+ 1 - 1
libcontainerd/local/local_windows.go

@@ -607,7 +607,7 @@ func (c *client) Start(_ context.Context, id, _ string, withStdin bool, attachSt
 	case ctr == nil:
 	case ctr == nil:
 		return -1, errors.WithStack(errdefs.NotFound(errors.New("no such container")))
 		return -1, errors.WithStack(errdefs.NotFound(errors.New("no such container")))
 	case ctr.init != nil:
 	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)
 	logger := c.logger.WithField("container", id)