-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-helpers.sh
More file actions
38 lines (30 loc) · 925 Bytes
/
docker-helpers.sh
File metadata and controls
38 lines (30 loc) · 925 Bytes
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
#!/bin/bash
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Docker
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
BASHHELPERSHELP+=("" "[Docker]")
BASHHELPERSHELP+=("dils : Show All docker images")
alias dils="docker image ls"
BASHHELPERSHELP+=("dps : Show all active docker containers")
alias dps="docker ps"
BASHHELPERSHELP+=("dpsa : Show all active and inactive docker containers")
alias dpsa="docker ps -a"
BASHHELPERSHELP+=("dex : Gain TTY & Interactive access to a specific docker")
unalias dex > /dev/null 2>&1
function dex() {
docker exec -it $1 /bin/bash
}
BASHHELPERSHELP+=("dlog : Docker Logs for a specific Container")
unalias dlog > /dev/null 2>&1
function dlog() {
docker logs $1
}
BASHHELPERSHELP+=("dst : Docker Stats")
unalias dst > /dev/null 2>&1
function dst() {
docker stats $1
}
BASHHELPERSHELP+=("drm : Remove docker container")
function drm() {
docker rm $1
}