Restart Docker Desktop on macOS via the terminal
24 October 2023 (Updated 24 October 2023)
On this page
Command
osascript -e 'quit app "Docker"' && open -a Docker
Bonus: add ZSH function / alias
function restart-docker() {
quit-docker
open-docker
}
function quit-docker() {
osascript -e 'quit app "Docker"'
}
function open-docker() {
open -a Docker
}
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment