DEV Community

Discussion on: The Most Useful Docker Commands for Mac You’ve Never Heard of, Because You Need To Make Them

Collapse
 
shricodev profile image
Shrijal Acharya

Why just Mac? Shouldn't it work with Linux or WSL? I believe it should.

Collapse
 
michaelcharles profile image
Michael Charles Aubrey

You could make such a script for Linux, but it would need to be altered. The script I posted here is based on opening the Docker Desktop app via the command line. On Linux, you'd probably just want to start or stop the daemon (systemctl start docker and systemctl stop docker). The flush command might work out of the box, especially if you're running Zsh on your Linux machine.