Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 09f8810

Browse files
authored
Merge pull request #356 from thaJeztah/19.03_backport_fix_windows_errortype
[19.03 backport] Windows: fix error-type for starting a running container
2 parents f4f8fea + a6b8e81 commit 09f8810

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libcontainerd/local/local_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ func (c *client) Start(_ context.Context, id, _ string, withStdin bool, attachSt
607607
case ctr == nil:
608608
return -1, errors.WithStack(errdefs.NotFound(errors.New("no such container")))
609609
case ctr.init != nil:
610-
return -1, errors.WithStack(errdefs.Conflict(errors.New("container already started")))
610+
return -1, errors.WithStack(errdefs.NotModified(errors.New("container already started")))
611611
}
612612

613613
logger := c.logger.WithField("container", id)

0 commit comments

Comments
 (0)