Update src/windows/wslaservice/exe/WSLAContainer.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Pooja Trivedi 2025-12-08 23:14:30 -05:00 committed by GitHub
parent d1aab6400c
commit 63ec07cc7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.
*/