File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ Docker:-Container
3
3
apt-get update
4
4
apt-get install docker.io
5
5
docker --version
6
+ docker version
7
+ docker info
8
+ docker
6
9
docker hub--->docker engine-->Docker images---> run,stop,deleted
7
10
8
11
docker pull ubuntu
@@ -49,6 +52,14 @@ docker commit 99f528fc4261 ramansharma95/apache
49
52
docker push ramansharma95/apache
50
53
check in the docker hub
51
54
55
+ -----------Create Local Docker registry
56
+
57
+ docker container run -d -p 5000:5000 --name local_registry registry
58
+ http://<serverip>:5000/v2/_catalog
59
+ docker container inspect local_registry
60
+ docker image tag ubuntu localhost:5000/ubuntu:latest
61
+ docker image push localhost:5000/ubuntu
62
+ docker image pull localhost:5000/ubuntu
52
63
53
64
--------Docker file
54
65
@@ -72,7 +83,7 @@ RUN apt-get update
72
83
RUN apt-get -y install apache2
73
84
ADD . /var/www/html
74
85
ENTRYPOINT apachectl -D FOREGROUND
75
- ENV name DEVOPS raman
86
+ ENV name DEVOPS
76
87
77
88
Create an html file in the current directory.(index.html)
78
89
Build the docker file
You can’t perform that action at this time.
0 commit comments