Merge pull request #1274 from matthewadams/more-docker
commit
2ce6d58365
|
|
@ -1,6 +1,7 @@
|
|||
cite 'about-alias'
|
||||
about-alias 'docker abbreviations'
|
||||
|
||||
alias dk='docker'
|
||||
alias dklc='docker ps -l' # List last Docker container
|
||||
alias dklcid='docker ps -l -q' # List last Docker container ID
|
||||
alias dklcip='docker inspect -f "{{.NetworkSettings.IPAddress}}" $(docker ps -l -q)' # Get IP of last Docker container
|
||||
|
|
@ -26,6 +27,8 @@ alias dkideps='docker-image-dependencies' # Output a graph of image dependencie
|
|||
alias dkre='docker-runtime-environment' # List environmental variables of the supplied image ID
|
||||
alias dkelc='docker exec -it `dklcid` bash' # Enter last container (works with Docker 1.3 and above)
|
||||
alias dkex='docker exec -it ' # Useful to run any commands into container without leaving host
|
||||
alias dkri='docker run --rm -i '
|
||||
alias dkrit='docker run --rm -it '
|
||||
|
||||
# Added more recent cleanup options from newer docker versions
|
||||
alias dkip='docker image prune -a -f'
|
||||
|
|
|
|||
Loading…
Reference in New Issue