> For the complete documentation index, see [llms.txt](https://kevindebruno.gitbook.io/worker-troubleshooting-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kevindebruno.gitbook.io/worker-troubleshooting-guide/how-to-re-run-the-docker/mac-os.md).

# Mac OS

To restart Docker on your Mac device:

* First, open Terminal. You can open Terminal from the Applications folder or use Spotlight Search (Press Command + Space and type "Terminal").
* Then enter the following script:

  ```bash
  # Stop all running containers
  docker stop $(docker ps -aq)

  # Remove all containers
  docker rm $(docker ps -aq)

  # Remove all images
  docker rmi $(docker images -aq)

  # Run the worker command
  # [ USE YOUR ACTUAL WORKER COMMAND ]
  ```

  \
  If you don't know how to find your worker command, kindly check [here ](/worker-troubleshooting-guide/how-to-re-run-the-docker/windows.md)

<br>
