forked from RAHAMSHAIK007/febbatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DOCKER-02
97 lines (97 loc) · 2.72 KB
/
DOCKER-02
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
1 yum install docker -y
2 systemctl start docker
3 systemctl status docker
4 vim Dockerfile
5 cat Dockerfile
6 docker images
7 docker build -t swiggy:v1 .
8 docker images
9 docker run -it --name cont1 swiggy:v1
10 vim Dockerfile
11 vim raham.txt
12 ll
13 vim index.html
14 ll
15 vim Dockerfile
16 cat Dockerfile
17 docker build -t swiggy:v1 .
18 vim Dockerfile
19 docker build -t swiggy:v1 .
20 docker images
21 docker run -it --name cont2 swiggy:v1
22 cat Dockerfile
23 vim Dockerfile
24 docker build -t swiggy:v1 .
25 docker run -it --name cont3 swiggy:v1
26 ll
27 rm -rf Dockerfile
28 vim Dockerfile
29 docker build -t swiggy:v2 .
30 docker run -it --name cont4 swiggy:v2
31 docker ps -a
32 docker start cont4
33 docker ps -a
34 docker attach cont4
35 vim Dockerfile
36 docker build -t swiggy:v2 .
37 docker run -itd --name cont5 swiggy:v2
38 docker ps -a
39 docker attach cont5
40 docker start cont5
41 docker attach cont5
42 docker exec cont5 bash
43 docker start cont5
44 docker exec cont5 bash
45 docker ps -a
46 docker run -itd --name cont6 swiggy:v2
47 docker run -it --name cont7 swiggy:v2
48 docker ps -a
49 vim Dockerfile
50 docker build -t raham:v1 .
51 docker run -it --name cont8 raham:v1 /bin/bash
52 docker run -it --name cont9 raham:v1
53 cat Dockerfile
54 vim Dockerfile
55 docker build -t raham:v2 .
56 docker run -it --name cont10 raham:v1
57 docker run -it --name cont10 raham:v2
58 docker run -it --name cont11 raham:v2
59 cat Dockerfile
60 docker ps -a
61 ll
62 rm -rf *
63 docker ps -a
64 docker rm 72d3fb8de707
65 docker ps -a
66 docker stop $(docker ps -a -q)
67 docker rm $(docker ps -a -q)
68 docker ps -a
69 docker images
70 docker rmi cb4d40c89571
71 docker rmi -f $(docker images -q)
72 docker images
73 vim Dockerfile
74 ll
75 vim index.html
76 docker build -t paytm:m1
77 docker build -t paytm:m1 .
78 docker image
79 docker images
80 docker run -d --name movies -p 80:80 paytm:m1
81 vim index.html
82 docker build -t paytm:t1 .
83 docker run -d --name train -p 81:80 paytm:t1
84 vim index.html
85 docker build -t paytm:c1 .
86 docker run -d --name train -p 82:80 paytm:c1
87 docker run -d --name cricket -p 82:80 paytm:c1
88 docker ps -a
89 docker images
90 docker rmi ubuntu
91 docker images
92 docker inspect cricket
93 docker inspect cricket | grep -i Images
94 docker inspect cricket | grep -i image
95 docker images
96 docker history paytm:c1
97 history