I work with Docker all the time. Ditching my MAMP stack for Docker was one of the most convenient and useful decisions I've ever made. If you are i...
For further actions, you may consider blocking this person and/or reporting abuse
Nice cheat-sheet, thanks!
I can add:
I'd recommend starting all alias names with a common prefix, so that you can list the available aliases with tab-completion. Something uncommon like
dkor something. Then you can dodk<TAB>and see all your aliases.Good to know I am not the only one with this idea. I prefix all my tool related alias like
fld_prune = docker system pruneandflk_delete = kubectl delete.flis my handler,fld_are my docker alias,flk_are kube related aliases.fly_are youtube-dl related alias. Only tools related aliases are prefixed, common aliases are not prefixed socls=clearandmd=mkdir -pare unprefixed.I also have a cheatsheet and a respondiere tool with wich i could take a look at the cheatsheet via shell and execute commands instantly.
Also including some predefined databases.
Cheatsheet: github.com/m1well/env-setup/blob/m...
Tool: github.com/m1well/cheatsheet
I've been using something similar for kubernetes and it's a life changer. (github.com/ahmetb/kubectl-aliases)
maybe we should make a docker repo?
Cool! You can simplify your docker stop command like this (if you want)
edit: remove 'a' from the ps command
You can speed up this command by simply removing the
aflag. It gets all Docker containers, even those which are stopped, which makes no sense for stopping all containers.You are right, also using this to remove all so got confused 😜
Also
dce="docker-compose exec -itMy work buddies and I took the alias idea to next level and created github.com/bah-insignia/zcmd
That's for docker compose. Not docker.