@@ -49,17 +49,39 @@ docker image ls
49
49
### Images and Their Layers: Discover the Image Cache
50
50
51
51
* 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.
53
62
```
54
63
docker image ls
55
64
56
- docker history nginx:latest
65
+ docker history nginx:latest (old way)
57
66
58
67
docker history mysql
59
68
60
69
docker image inspect nginx
61
70
```
62
71
## 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
+
63
85
```
64
86
docker image tag -- help
65
87
@@ -73,27 +95,31 @@ docker pull nginx:mainline
73
95
74
96
docker image ls
75
97
76
- docker image tag nginx bretfisher /nginx
98
+ docker image tag nginx codersh /nginx
77
99
78
100
docker image tag --help
79
101
80
102
docker image ls
81
103
82
- docker image push bretfisher /nginx
104
+ docker image push codersh /nginx
83
105
84
106
docker --help
85
107
86
108
docker login
87
109
88
110
cat .docker/config.json
89
111
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
91
117
92
- docker image push bretfisher /nginx bretfisher /nginx:testing
118
+ docker image push codersh /nginx codersh /nginx:testing
93
119
94
120
docker image ls
95
121
96
- docker image push bretfisher /nginx:testing
122
+ docker image push codersh /nginx:testing
97
123
98
124
docker image ls
99
125
```
0 commit comments