You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
François VANTOMME
d7c86c704f
|
6 years ago | |
---|---|---|
.. | ||
README.md | 6 years ago | |
alias.zsh | 6 years ago | |
init.zsh | 8 years ago |
README.md
ZSH Docker Aliases
Defines Docker aliases and functions.
Aliases
Docker
dk
is short fordocker
dka
Attach to a running containerdkb
Build an image from a Dockerfiledkd
Inspect changes on a container's filesystemdkdf
Show docker filesystem usagedke
Run a command in a running containerdkE
Run an interactive command in a running containerdkh
Show the history of an imagedki
List imagesdkin
Return low-level information on a container, image or taskdkk
Kill a running containerdkkh
Sendkill -s HUP
signal to a running containerdkl
Fetch the logs of a containerdkL
Fetch and follow (-f
) the logs of a containerdkli
Log in to a Docker registrydklo
Log out from a Docker registrydkls
is alias fordkps
dkp
Pause all processes within one or more containersdkP
Unpause all processes within one or more containersdkpl
Pull an image or a repository from a registrydkph
Push an image or a repository to a registrydkps
List containersdkpsa
List all containers (default lists just running)dkr
Run a command in a new containerdkR
Run an interactive command in a new container and automatically remove the container when it exitsdkRe
likedkR
and set entry point to/bin/bash
dkrm
Remove one or more containersdkrmi
Remove one or more imagesdkrmC
Clean up exited containersdkrmI
Clean up dangling imagesdkrmV
Clean up unused volumes ( Docker >= 1.9 )dkrn
Rename a containerdks
Start one or more stopped containersdkS
Restart a containerdkss
Display a live stream of container(s) resource usage statisticsdksv
Save one or more images to a tar archive (streamed to STDOUT by default)dkt
Tag an image into a repositorydktop
Display the running processes of a containerdkup
Update configuration of one or more containersdkV
Manage Docker volumesdkv
Show the Docker version informationdkw
Block until a container stops, then print its exit codedkx
Stop a running container
container (C)
dkC
Manage containersdkCa
Attach to a running containerdkCcp
Copy files/folders between a container and the local filesystemdkCd
Inspect changes on a container's filesystemdkCe
Run a command in a running containerdkCin
Display detailed information on one or more containersdkCk
Kill one or more running containersdkCl
Fetch the logs of a containerdkCL
Fetch and follow (-f
) the logs of a containerdkCls
List containersdkCp
Pause all processes within one or more containersdkCpr
Remove all stopped containersdkCrn
Rename a containerdkCS
Restart one or more containersdkCrm
Remove one or more containersdkCr
Run a command in a new containerdkCR
Run an interactive command in a new container and automatically remove the container when it exitsdkCRe
likedkCR
and set entry point to/bin/bash
dkCs
Start one or more stopped containersdkCss
Display a live stream of container(s) resource usage statisticsdkCx
Stop one or more running containersdkCtop
Display the running processes of a containerdkCP
Unpause all processes within one or more containersdkCup
Update configuration of one or more containersdkCw
Block until one or more containers stop, then print their exit codes
image (I)
dkI
Manage imagesdkIb
Build an image from a DockerfiledkIh
Show the history of an imagedkIim
Import the contents from a tarball to create a filesystem imagedkIin
Display detailed information on one or more imagesdkIls
List imagesdkIpr
Remove unused imagesdkIpl
Pull an image or a repository from a registrydkIph
Push an image or a repository to a registrydkIrm
Remove one or more imagesdkIsv
Save one or more images to a tar archive (streamed to STDOUT by default)dkIt
Tag an image into a repository
volume (V)
dkV
Manage volumesdkVin
Display detailed information on one or more volumesdkVls
List volumesdkVpr
Remove all unused volumesdkVrm
Remove one or more volumes
network (N)
dkN
Manage networksdkNs
Connect a container to a networkdkNx
Disconnects a container from a networkdkNin
Displays detailed information on a networkdkNls
Lists all the networks created by the userdkNpr
Remove all unused networksdkNrm
Deletes one or more networks
system (Y)
dkY
Manage DockerdkYdf
Show docker filesystem usagedkYpr
Remove unused data
stack (K)
dkK
Manage Docker stacksdkKls
List stacksdkKps
List the tasks in the stackdkKrm
Remove the stack
swarm (W)
dkW
Manage Docker Swarm
Docker Machine
dkm
is short fordocker-machine
dkma
Get or set the active machinedkmcp
Copy files between machinesdkmd
Set up the default machine ; alowing you to usedkme
without argumentsdkme
Set up the environment for the Docker client (eg:dkme staging
to toggle to staging)dkmin
Inspect information about a machinedkmip
Get the IP address of a machinedkmk
Kill a machinedkmls
List machinesdkmpr
Re-provision existing machinesdkmps
is alias fordkmls
dkmrg
Regenerate TLS Certificates for a machinedkmrm
Remove a machinedkms
Start a machinedkmsh
Log into or run a command on a machine with SSHdkmst
Get the status of a machinedkmS
Restart a machinedkmu
Get the URL of a machinedkmup
Upgrade a machine to the latest version of DockerdkmV
Show the Docker Machine version or a machine docker versiondkmx
Stop a machine
Docker Compose
dkc
is short fordocker-compose
dkcb
Build or rebuild servicesdkcB
Build or rebuild services and do not use cache when building the imagedkcd
Stop and remove containers, networks, images, and volumesdkce
Execute a command in a running containerdkck
Kill containersdkcl
View output from containersdkcL
View and follow (-f
) output from containersdkcls
is alias fordkcps
dkcp
Pause servicesdkcP
Unpause servicesdkcpl
Pull service imagesdkcph
Push service imagesdkcps
List containersdkcr
Run a one-off commanddkcR
Run a one-off command and remove container after run.dkcrm
Remove stopped containersdkcs
Start servicesdkcsc
Set number of containers for a servicedkcS
Restart servicesdkcu
Create and start containersdkcU
Create and start containers in detached mode: Run containers in the background, print new container namesdkcV
Show the Docker-Compose version informationdkcx
Stop services
Support
If you're having problems, use the Prezto issue tracker.
Acknowledgements
This module is a copy of akarzim/zsh-docker-aliases by François Vantomme (MIT License).