mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-10 00:44:55 -06:00
Update src/windows/wslaservice/exe/WSLAContainer.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
d1aab6400c
commit
63ec07cc7c
@ -77,7 +77,8 @@ try
|
||||
* returns success and <containerId> on stdout if the container is running or already stopped
|
||||
* returns error "No such container: <containerId>" on stderr if the container is in 'Created' state or does not exist
|
||||
*
|
||||
* For our case, we consider stopping a container that is not running or does not exist as a no-op and return success.
|
||||
* For our case, we treat stopping an already-exited container as a no-op and return success.
|
||||
* Stopping a deleted or created container returns ERROR_INVALID_STATE.
|
||||
* TODO: Discuss and return stdout/stderr or corresponding HRESULT from nerdctl stop for better diagnostics.
|
||||
*/
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user