-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases_docker
54 lines (36 loc) · 1.39 KB
/
.aliases_docker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Docker - List all running containers.
alias dps='docker ps'
# Docker - List all containers, including stopped ones.
alias dpsa='docker ps -a'
# Docker - Start a stopped container.
alias dstart='docker start'
# Docker - Stop a running container.
alias dstop='docker stop'
# Docker - Restart a container.
alias drestart='docker restart'
# Docker - Remove a stopped container.
alias drm='docker rm'
# Docker - Forcefully remove a running container.
alias drmforce='docker rm -f'
# Docker - List all Docker images.
alias dimages='docker images'
# Docker - Remove a Docker image.
alias drmimg='docker rmi'
# Docker - Remove all images without associated containers.
alias dip='docker image prune'
# Docker - List all Docker networks.
alias dnetls='docker network ls'
# Docker - Show details about a specific network.
alias dnetinspect='docker network inspect'
# Docker - List all Docker volumes.
alias dvolumels='docker volume ls'
# Docker - Show details about a specific volume.
alias dvolumeinspect='docker volume inspect'
# Docker - Execute a command inside a running container.
alias dexec='docker exec -it'
# Docker - Show the logs of a container.
alias dlogs='docker logs'
# Docker - Start the services defined in a docker-compose.yml file.
alias dcomposeup='docker compose up'
# Docker - Stop and remove the containers defined in a docker-compose.yml file.
alias dcomposedown='docker compose down'