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

Commit 5a308f6

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 Upstream-commit: 09f8810272a2df7875e8b6a0102fa6c1479e7887 Component: engine
2 parents 194048e + 6bceecd commit 5a308f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/engine/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)