Skip to content

Commit 5d3f9f1

Browse files
committed
images
1 parent 1ac5202 commit 5d3f9f1

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

docker/images/readme.txt renamed to docker/images/readme.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
how to build docker image
2+
=========================
23
two ways
34
MANAUL
45
AUTOMATED
56

67
Manual Process
8+
==============
79
choose a base image
810
run it as cotnainer in interactive mode
911
make neccessary changes inside the container
@@ -31,7 +33,7 @@ how to build docker image
3133
new image name -- anyname for your new image ( ex: mynginx )
3234

3335
Automated process ( real time practice )
34-
36+
=========================================
3537
create a simple text file & write the all the instructions build an image
3638

3739
vi mydockerfile
@@ -48,6 +50,7 @@ how to build docker image
4850

4951

5052
how to push docker images into docker hub
53+
==========================================
5154
create an account in hub.docker.com
5255
create a reportsitory after logged into the account (ex: myapp)
5356
on docker host
@@ -63,7 +66,7 @@ how to push docker images into docker hub
6366

6467

6568
how to push images to private repo ---- DTR ( docker trusted registry )
66-
69+
=======================================================================
6770
goto mydockerrepo.com & create an acct
6871
inside the acct create a repo
6972
come back to the server & login to the private repo ( docker login mydockerrepo.com ) provide uid/pwd
@@ -74,7 +77,7 @@ how to push images to private repo ---- DTR ( docker trusted registry )
7477

7578

7679
how to push images to private repo ( registry container by docker )
77-
80+
===================================================================
7881
docker run -d -p 5000:5000 --restart always --name registry registry:2
7982
local registry container address -- localhost:5000
8083
docker tag local-image:tagname new-repo:tagname
@@ -84,14 +87,16 @@ how to push images to private repo ( registry container by docker )
8487

8588

8689
how to push images offline ( docker save & docker load )
90+
========================================================
8791
docker save -o mycentos.tgz mycentos:v1
8892
scp mycentos.tgz to target machine / server
8993
docker load < mycentos.tgz
9094

9195
==================================================================================================================
9296

9397
Advanced image concepts
98+
=======================
9499

95-
find dangling images
96-
docker images -f dangling=true
97-
docker image prune --dangling=true
100+
find dangling images
101+
docker images -f dangling=true
102+
docker image prune --dangling=true

0 commit comments

Comments
 (0)