Restart Docker from command line

FYI, on Apple Silicon, the GUI does this:

curl -X POST -H 'Content-Type: application/json' -d '{ "openContainerView": true }' -kiv --unix-socket ~/Library/Containers/com.docker.docker/Data/backend.sock http://localhost/engine/restart
3 Likes