I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
I leave docker running all the time and leave my macbook with the lid closed. My workflow is otherwise pretty similar to yours.
I don't think there's any difference between running docker container stop and docker stop, and I can't think of a reason you'd need to attempt to stop containers which aren't running (what the -a gives you), so mine looks like this:
docker stop $(docker ps -q)
I call my version "undock", because I like making it obvious what're official docker commands and what're my additions - I have a very small brain and don't want to get used to expecting subcommands which don't exist on other environments!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I leave docker running all the time and leave my macbook with the lid closed. My workflow is otherwise pretty similar to yours.
I don't think there's any difference between running
docker container stopanddocker stop, and I can't think of a reason you'd need to attempt to stop containers which aren't running (what the-agives you), so mine looks like this:docker stop $(docker ps -q)I call my version "undock", because I like making it obvious what're official docker commands and what're my additions - I have a very small brain and don't want to get used to expecting subcommands which don't exist on other environments!