File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ CMD ["Hello World"]
154154docker build . -t img1 #Created the image from above Dockerfile
155155docker run -it img1 # it will return Hello World
156156
157-
157+ docker build . -f abc -t img8 # abc is the file name which represents the dockerfile contents
158158
159159Create an html file in the current directory.(index.html)
160160Build the docker file
@@ -174,6 +174,7 @@ Docker Volume :- is a mountable entity which can be used to store data, in the d
174174 docker volume ls //to list the volumes
175175
176176 docker run -it --mount source=demo-vol,destination=/app -d ubuntu
177+ docker run -it --mount source=demo-vol,destination=/test --mount source=demo-vol1,destination=/test1 -d ubuntu
177178 remove the container
178179 attach volume to another container
179180Bind Mounts :- mounts a directory from host machine to the container
You can’t perform that action at this time.
0 commit comments