How to control Docker for Mac from command-line

How can I stop Docker for Mac from the command-line?

At the moment, I’m brutally running this:

ps aux | grep "Docker.app" | awk '{print $2}' | xargs kill

But it causes an OSX dialog box to pop up informing the user of a Docker-related error. I’d like something elegant…

How can I uninstall Docker for Mac from the command-line?

At the moment (after the above stop), I’m just guessing to delete Docker.app - but I know it sets up symlinks outside its .app folder. Is there an elegant uninstaller?

If not, what, aside from the Symlinks, must be deleted or changed to fully uninstall?