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
dk
or 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 prune
andflk_delete = kubectl delete
.fl
is 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=clear
andmd=mkdir -p
are 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
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
a
flag. 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 -it
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?
My 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.