# List images
alias di="docker images"
# List containers
alias dps = "docker ps"
# List all containers (not only running)
alias dpsa = "docker ps -all"
# Get container IP
alias dip="docker inspect --format '{{ .NetworkSettings.IPAddress }}'"
# Remove all images
alias drmi = "docker rmi $(docker images -q)"
# Remove dangling images
alias drmig = "docker images prune"
# Remove all containers
alias drm = "docker rm $(docker ps -qa)"
# Remove all containers (force the removal of a running container)
alias drmf = "docker rm -f $(docker ps -qa)"
# Execute interactive container
alias dex = "docker exec -it"
-
Notifications
You must be signed in to change notification settings - Fork 0
alfiesal/docker-aliases
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Useful command line alias for Docker
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published