Skip to content

alfiesal/docker-aliases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

List of Docker aliases

Available aliases

# 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"

About

Useful command line alias for Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages