docker / for-win

Bug reports for Docker Desktop for Windows

Home Page:https://www.docker.com/products/docker#/windows

Repository from Github https://github.comdocker/for-winRepository from Github https://github.comdocker/for-win

Cannot stop Docker Compose application. Reason: Error invoking remote method 'compose-action': Error: spawn C:\Windows\system32\cmd.exe ENOENT

yooakim opened this issue · comments

  • I have tried with the latest version of Docker Desktop
  • I have tried disabling enabled experimental features
  • I have uploaded Diagnostics
  • Diagnostics ID: 8B2EA6F7-4A97-48C4-9FB6-3E355C996E1E/20210916130539

Actual behavior

When I try to stop the application started via Docker Compose I the the error:

Cannot stop Docker Compose application. Reason: Error invoking remote method 'compose-action': Error: spawn C:\Windows\system32\cmd.exe ENOENT

Here's a screen recording:
docker-desktop-issue

Expected behavior

I expected the app to be stopped.

Information

The app was created from the appwrite.io getting started guide.

  • Windows Version: 10.0.22000
  • Docker Desktop Version: 4.0.1
  • WSL2 or Hyper-V backend? WSL2
  • Are you running inside a virtualized Windows e.g. on a cloud server or a VM: No

I had that same problem and the fix was:

  1. Restart each docker container (I did this using CLI).
    docker container ls -a
    docker container restart <container_id>
  2. After that check if all of them are running, if not log ones that exited.
    docker container logs <container_id>
  3. Look for some errors, in my case there was one config file missing.
  4. Fix error 😉

Issues go stale after 90 days of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30 days of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale

Hello, i've had the same when i changed the name folder where was my docker-compose. i had to change the old name folder

image
Stop Appwrite containers , from https://appwrite.io/docs/installation

how do you restart the server again? I tried to restart the server, but that error occurs

@levi956 I run "docker-compose start" from dir where has appwrite folder. Try Quit Docker Desktop (in Windows), and then try run/stop server.
image

Thank you it worked for me. All you have to do is go inside appwrite directory and docker-compose start to start or docker-compose stop to stop

I have deleted the appwrite directory what should I do?

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked