{"id":22475361,"url":"https://github.com/akarzim/zsh-docker-aliases","last_synced_at":"2025-04-09T11:12:57.860Z","repository":{"id":14566724,"uuid":"76735017","full_name":"akarzim/zsh-docker-aliases","owner":"akarzim","description":"ZSH Docker aliases and functions","archived":false,"fork":false,"pushed_at":"2024-02-04T11:13:55.000Z","size":33,"stargazers_count":204,"open_issues_count":1,"forks_count":38,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-02T03:41:13.921Z","etag":null,"topics":["docker","zsh"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akarzim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-17T16:38:56.000Z","updated_at":"2024-12-21T07:22:51.000Z","dependencies_parsed_at":"2024-12-26T00:07:24.840Z","dependency_job_id":"8f0f5381-42cd-465f-b1bc-8deba2603e02","html_url":"https://github.com/akarzim/zsh-docker-aliases","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akarzim%2Fzsh-docker-aliases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akarzim%2Fzsh-docker-aliases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akarzim%2Fzsh-docker-aliases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akarzim%2Fzsh-docker-aliases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akarzim","download_url":"https://codeload.github.com/akarzim/zsh-docker-aliases/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248027411,"owners_count":21035594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","zsh"],"created_at":"2024-12-06T13:15:37.537Z","updated_at":"2025-04-09T11:12:57.835Z","avatar_url":"https://github.com/akarzim.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# ZSH Docker Aliases\n\nDefines [Docker][1] aliases and functions.\n\n## How to Install\n\n### With [zplug][2]\n\n```sh\nzplug \"akarzim/zsh-docker-aliases\"\n```\n\n### With [Oh My Zsh](https://ohmyz.sh/):\n```sh\ngit clone https://github.com/akarzim/zsh-docker-aliases.git  ~/.oh-my-zsh/custom/plugins/zsh-docker-aliases\n# then add `zsh-docker-aliases` to `plugins` in your .zshrc\n```\n\n### With [zinit][4]\n```sh\nzinit light akarzim/zsh-docker-aliases\n```\n\n## Aliases\n\n### Docker\n\n- `dk` is short for `docker`\n- `dka` Attach to a running container\n- `dka!` Attach to a running container by name\n- `dkb` Build an image from a Dockerfile\n- `dkd` Inspect changes on a container's filesystem\n- `dkdf` Show docker filesystem usage\n- `dke` Run a command in a running container\n- `dkE` Run an interactive command in a running container\n- `dkE!` Run an interactive command in a running container by name\n- `dkh` Show the history of an image\n- `dki` List images\n- `dkin` Return low-level information on a container, image or task\n- `dkk` Kill a running container\n- `dkkh` Send `kill -s HUP` signal to a running container\n- `dkl` Fetch the logs of a container\n- `dkL` Fetch and follow (`-f`) the logs of a container\n- `dkli` Log in to a Docker registry\n- `dklo` Log out from a Docker registry\n- `dkls` is alias for `dkps`\n- `dkp` Pause all processes within one or more containers\u003cPaste\u003e\n- `dkP` Unpause all processes within one or more containers\n- `dkpl` Pull an image or a repository from a registry\n- `dkplI` Pull all tagged images\n- `dkph` Push an image or a repository to a registry\n- `dkps` List containers\n- `dkps!` Display the first matching docker container ID by name\n- `dkpsa` List all containers (default lists just running)\n- `dkr` Run a command in a new container\n- `dkR` Run an interactive command in a new container and automatically remove the container when it exits\n- `dkRe` like `dkR` and set entry point to `/bin/bash`\n- `dkrm` Remove one or more containers\n- `dkrmi` Remove one or more images\n- `dkrmC` Clean up exited containers\n- `dkrmI` Clean up dangling images\n- `dkrmV` Clean up unused volumes ( Docker \u003e= 1.9 )\n- `dkrn` Rename a container\n- `dks` Start one or more stopped containers\n- `dkS` Restart a container\n- `dkss` Display a live stream of container(s) resource usage statistics\n- `dksv` Save one or more images to a tar archive (streamed to STDOUT by default)\n- `dkt` Tag an image into a repository\n- `dktop` Display the running processes of a container\n- `dkup` Update configuration of one or more containers\n- `dkV` Manage Docker volumes\n- `dkv` Show the Docker version information\n- `dkw` Block until a container stops, then print its exit code\u003cPaste\u003e\n- `dkx` Stop a running container\n\n#### container (C)\n\n- `dkC` Manage containers\n- `dkCa` Attach to a running container\n- `dkCcp` Copy files/folders between a container and the local filesystem\n- `dkCd` Inspect changes on a container's filesystem\n- `dkCe` Run a command in a running container\n- `dkCE` Run an interactive command in a running container\n- `dkCin` Display detailed information on one or more containers\n- `dkCk` Kill one or more running containers\n- `dkCl` Fetch the logs of a container\n- `dkCL` Fetch and follow (`-f`) the logs of a container\n- `dkCls` List containers\n- `dkCp` Pause all processes within one or more containers\n- `dkCpr` Remove all stopped containers\n- `dkCrn` Rename a container\n- `dkCS` Restart one or more containers\n- `dkCrm` Remove one or more containers\n- `dkCr` Run a command in a new container\n- `dkCR` Run an interactive command in a new container and automatically remove the container when it exits\n- `dkCRe` like `dkCR` and set entry point to `/bin/bash`\n- `dkCs` Start one or more stopped containers\n- `dkCss` Display a live stream of container(s) resource usage statistics\n- `dkCx` Stop one or more running containers\n- `dkCtop` Display the running processes of a container\n- `dkCP` Unpause all processes within one or more containers\n- `dkCup` Update configuration of one or more containers\n- `dkCw` Block until one or more containers stop, then print their exit codes\n\n#### image (I)\n\n- `dkI` Manage images\n- `dkIb` Build an image from a Dockerfile\n- `dkIh` Show the history of an image\n- `dkIim` Import the contents from a tarball to create a filesystem image\n- `dkIin` Display detailed information on one or more images\n- `dkIls` List images\n- `dkIpr` Remove unused images\n- `dkIpl` Pull an image or a repository from a registry\n- `dkIph` Push an image or a repository to a registry\n- `dkIrm` Remove one or more images\n- `dkIsv` Save one or more images to a tar archive (streamed to STDOUT by default)\n- `dkIt` Tag an image into a repository\n\n#### volume (V)\n\n- `dkV` Manage volumes\n- `dkVin` Display detailed information on one or more volumes\n- `dkVls` List volumes\n- `dkVpr` Remove all unused volumes\n- `dkVrm` Remove one or more volumes\n\n#### network (N)\n\n- `dkN` Manage networks\n- `dkNs` Connect a container to a network\n- `dkNx` Disconnects a container from a network\n- `dkNin` Displays detailed information on a network\n- `dkNls` Lists all the networks created by the user\n- `dkNpr` Remove all unused networks\n- `dkNrm` Deletes one or more networks\n\n#### system (Y)\n\n- `dkY` Manage Docker\n- `dkYdf` Show docker filesystem usage\n- `dkYpr` Remove unused data\n\n#### stack (K)\n\n- `dkK` Manage Docker stacks\n- `dkKls` List stacks\n- `dkKps` List the tasks in the stack\n- `dkKrm` Remove the stack\n\n#### swarm (W)\n\n- `dkW` Manage Docker Swarm\n\n### Docker Machine\n\n- `dkm` is short for `docker-machine`\n- `dkma` Get or set the active machine\n- `dkmcp` Copy files between machines\n- `dkmd` Set up the default machine ; alowing you to use `dkme` without arguments\n- `dkme` Set up the environment for the Docker client (eg: `dkme staging` to toggle to staging)\n- `dkmin` Inspect information about a machine\n- `dkmip` Get the IP address of a machine\n- `dkmk` Kill a machine\n- `dkmls` List machines\n- `dkmpr` Re-provision existing machines\n- `dkmps` is alias for `dkmls`\n- `dkmrg` Regenerate TLS Certificates for a machine\n- `dkmrm` Remove a machine\n- `dkms` Start a machine\n- `dkmsh` Log into or run a command on a machine with SSH\n- `dkmst` Get the status of a machine\n- `dkmS` Restart a machine\n- `dkmu` Get the URL of a machine\n- `dkmup` Upgrade a machine to the latest version of Docker\n- `dkmv` Show the Docker Machine version or a machine docker version\n- `dkmx` Stop a machine\n\n### Docker Compose\n\n\u003e Note from docker-compose v1.29.2:\n\u003e Except for the Linux platform, Docker Compose is now in the Docker CLI.\n\n- `dkc` is short for `docker-compose`\n- `dkcb` Build or rebuild services\n- `dkcB` Build or rebuild services and do not use cache when building the image\n- `dkccp` Copy files/folders between a service container and the local filesystem\n- `dkccr` Creates containers for a service\n- `dkccv` Converts the compose file to platform's canonical format\n- `dkcd` Stop and remove containers, networks, images, and volumes\n- `dkce` Execute a command in a running container\n- `dkcev` Receive real time events from containers\n- `dkci` List images used by the created containers\n- `dkck` Kill containers\n- `dkcl` View output from containers\n- `dkcL` View and follow (`-f`) output from containers\n- `dkcls` List running compose projects (or alias to `dkcps` under Linux)\n- `dkcp` Pause services\n- `dkcP` Unpause services\n- `dkcpl` Pull service images\n- `dkcph` Push service images\n- `dkcpo` Print the public port for a port binding\n- `dkcps` List containers\n- `dkcr` Run a one-off command\n- `dkcR` Run a one-off command and remove container after run.\n- `dkcrm` Remove stopped containers\n- `dkcs` Start services\n- `dkcsc` Set number of containers for a service\n- `dkcS` Restart services\n- `dkct` Display the running processes\n- `dkcu` Create and start containers\n- `dkcU` Create and start containers in detached mode:\n           Run containers in the background, print new container names\n- `dkcv` Show the Docker-Compose version information\n- `dkcx` Stop services\n\n## Author\n\n*The author of this module should be contacted via the [issue tracker][3].*\n\n- [François Vantomme](https://github.com/akarzim)\n\n[1]: https://www.docker.com/\n[2]: https://github.com/zplug/zplug\n[3]: https://github.com/akarzim/zsh-docker-aliases/issues\n[4]: https://github.com/zdharma-continuum/zinit\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakarzim%2Fzsh-docker-aliases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakarzim%2Fzsh-docker-aliases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakarzim%2Fzsh-docker-aliases/lists"}