Skip to content

Commit ceeeee6

Browse files
committed
learning Image Tagging and Pushing to Docker Hub
1 parent 9e96d7b commit ceeeee6

File tree

1 file changed

+33
-7
lines changed

1 file changed

+33
-7
lines changed

docker-2.md

+33-7
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,39 @@ docker image ls
4949
### Images and Their Layers: Discover the Image Cache
5050

5151
* Here, we can check images and its layers.
52-
52+
* Image Layers
53+
* Union filesystems
54+
* History and inspects Commands
55+
* Copy on write
56+
* Image Container Layers ---> Apache ----> Container 2 ---> COW
57+
* docker inspect commads actually use for the return of te JSON metadata about the image.
58+
* File systems changes and metadata were made by the images.
59+
* Each container layers were uncommon and unique to identify as well as we can stored them in once in a host.
60+
* This could save the storage spaces on host or transfer time on pull or push.
61+
* A container were just for the single read or write layers on the top of the images.
5362
```
5463
docker image ls
5564
56-
docker history nginx:latest
65+
docker history nginx:latest (old way)
5766
5867
docker history mysql
5968
6069
docker image inspect nginx
6170
```
6271
## Image Tagging and Pushing to Docker Hub :
72+
73+
* Here , we need to unsderstand how are the container images works and fundamentals of the image layers.
74+
* Know all about the image tags.
75+
* How to upload docker hub.
76+
* Image ID vs. Tag.
77+
* Properly tagging images
78+
* Tagging Images for upload to Docker Hub
79+
* Tagging Images for upload to Docker Hub
80+
* How tagging is related to image ID
81+
* The latest tag.
82+
* Logging into docker hub from docker cli.
83+
* How to create a private docker hub images.
84+
6385
```
6486
docker image tag -- help
6587
@@ -73,27 +95,31 @@ docker pull nginx:mainline
7395
7496
docker image ls
7597
76-
docker image tag nginx bretfisher/nginx
98+
docker image tag nginx codersh/nginx
7799
78100
docker image tag --help
79101
80102
docker image ls
81103
82-
docker image push bretfisher/nginx
104+
docker image push codersh/nginx
83105
84106
docker --help
85107
86108
docker login
87109
88110
cat .docker/config.json
89111
90-
docker image push bretfisher/nginx
112+
docker image push codersh/nginx
113+
114+
docker image tag codersh/nginx bretfisher/nginx:testing
115+
116+
docker image push codersh/nginx:testing
91117
92-
docker image push bretfisher/nginx bretfisher/nginx:testing
118+
docker image push codersh/nginx codersh/nginx:testing
93119
94120
docker image ls
95121
96-
docker image push bretfisher/nginx:testing
122+
docker image push codersh/nginx:testing
97123
98124
docker image ls
99125
```

0 commit comments

Comments
 (0)