sajad torkamani

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
}

Leave a comment

Your email address will not be published. Required fields are marked *