109 docker volumes --help 110 docker volume --help 111 docker volume prune 112 docker volume ls 113 ls /var/lib/docker/volumes...
109 docker volumes --help
110 docker volume --help
111 docker volume prune
112 docker volume ls
113 ls /var/lib/docker/volumes/
114 docker volume create demo-vol
115 ls /var/lib/docker/volumes/
116 ls /var/lib/docker/volumes/demo-vol/
117 ls /var/lib/docker/volumes/demo-vol/_data/
118 docker container run -it --name c1 --mount source=demo-vol,destination=/app -d ubuntu
119 docker images
120 docker ps -a
121 docker exec -it c1 bash
122 ls /var/lib/docker/volumes/
123 ls /var/lib/docker/volumes/demo-vol/_data/
124 docker rm -f c1
125 docker ps -a
126 ls /var/lib/docker/volumes/demo-vol/_data/
127 docker container run -it --name c2 --mount source=demo-vol,destination=/demo -d centos
128 docker ps -a
129 docker exec -it c2 bash
130 docker container inspect c2
131 docker volume ls
132 docker volume rm demo-vol~
133 docker volume rm demo-vol
134 docker rm -f c2
135 docker volume rm demo-vol
136 ls /var/lib/docker/volumes/
137 docker ps -a
138 mkdir mydir
139 docker container run -it --name c1 -v /home/ubuntu/mydir:/demo -d ubuntu
140 ls mydir/
141 docker exec -it c1 bash
142 ls mydir/
143 touch mydir/5
144 ls
145 ls mydir/
146 docker exec -it c1 bash
147 docker inspect c1
148 ip a
149 docker rm -f c1
150 docker ps
151 ip a
152 docker container run -it --name c1 -d ubuntu
153 ip a
154 docker inspect c1
155 docker network ls
156 docker container run -it -d centos
157 docker ps
158 docker inspect 154f21716aa9
159 docker exec -it 154f21716aa9 bash
160 docker network ls
161 docker rm -f $(docker ps -a -q)
162 docker network --help
163 docker network create -d bridge br1
164 docker network ls
165 docker container run -it --name c1 --network br1 -d ubuntu
166 ip a
167 docker inspect c1
168 docker container run -it --name c2 --network br1 -d centos
169 docker inspect c2
170 docker rm -f c1 c2
171 docker pull ramansharma95/webapp
172 docker pull ramansharma95/mysql
173 docker images
174 docker container run -it --name web -p 80:80 -d ramansharma95/webapp
175 docker container run -it --name db -d ramansharma95/mysql
176 docker exec -it web bash
177 docker exec -it db bash
178 docker rm -f web
179 docker rm -f db
180 docker container run -it --name web --network br1 -p 80:80 -d ramansharma95/webapp
181 docker container run -it --name db --network br1 -d ramansharma95/mysql
182 docker exec -it db bash
184 docker rm -f web db
185 docker network rm br1
186 docker network ls
187 docker container run -it --name h1 --network host -d nginx
188 docker inspect h1
189 docker container run -it --name h2 --network host -d nginx
190 docker ps -a
191 docker rm -f h1 h2
192 docker container run -it -d nginx
193 curl localhost
194 docker ps
195 docker inspect e1df
196 curl localhost 172.17.0.2
197 ping 172.17.0.2
198 docker container run -it --name n1 --network none -d centos
199 docker inspect n
200 docker inspect n1
201 docker exec -it n1 bash
202 docker network disconnect none n1
203 docker network connect bridge n1
204 docker inspect n1
COMMENTS