feat(docker): add docker desktop aliases

This commit is contained in:
Guilherme Henschel 2025-01-03 09:32:13 -03:00
parent d82669199b
commit a1c5304a65
2 changed files with 13 additions and 0 deletions

View File

@ -79,3 +79,9 @@ zstyle ':omz:plugins:docker' legacy-completion yes
| dvprune | `docker volume prune` | Cleanup dangling volumes | | dvprune | `docker volume prune` | Cleanup dangling volumes |
| dxc | `docker container exec` | Run a new command in a running container | | dxc | `docker container exec` | Run a new command in a running container |
| dxcit | `docker container exec -it` | Run a new command in a running container in an interactive shell | | dxcit | `docker container exec -it` | Run a new command in a running container in an interactive shell |
| ddeng | `docker desktop engine` | Commands to list and switch containers (Windows only) |
| ddres | `docker desktop restart` | Restart Docker Desktop |
| ddst | `docker desktop start` | Start Docker Desktop |
| ddsts | `docker desktop status` | Display Docker Desktop's status |
| ddstp | `docker desktop stop` | Stop Docker Desktop |
| ddver | `docker desktop version` | Show the Docker Desktop version information |

View File

@ -34,6 +34,13 @@ alias dvls='docker volume ls'
alias dvprune='docker volume prune' alias dvprune='docker volume prune'
alias dxc='docker container exec' alias dxc='docker container exec'
alias dxcit='docker container exec -it' alias dxcit='docker container exec -it'
alias ddeng='docker desktop engine'
alias ddres='docker desktop restart'
alias ddst='docker desktop start'
alias ddsts='docker desktop status'
alias ddstp='docker desktop stop'
alias ddver='docker desktop version'
if (( ! $+commands[docker] )); then if (( ! $+commands[docker] )); then
return return