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:

    # 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

Last updated