Skip to content

Commit 7799f01

Browse files
authored
Merge pull request #1 from onlineTrainingguy/master
please allow to pull.
2 parents c4a1fb5 + c46a661 commit 7799f01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DockerCommands/docker

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ CMD ["Hello World"]
154154
docker build . -t img1 #Created the image from above Dockerfile
155155
docker 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

159159
Create an html file in the current directory.(index.html)
160160
Build 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
179180
Bind Mounts :- mounts a directory from host machine to the container

0 commit comments

Comments
 (0)