亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Docker 之 鏡像管理

發布時間:2020-02-29 00:53:46 來源:網絡 閱讀:344 作者:wx592bc92b285c7 欄目:系統運維

一、鏡像查詢

Docker  之  鏡像管理

二、鏡像拉取

[root@docker network-scripts]# docker pull alpine
Using default tag: latest      #默認最新版本,可指定版本如:docker pull alpine:3.10.3
latest: Pulling from library/alpine 
e6b0cf9c0882: Pull complete 
Digest: sha256:2171658620155679240babee0a7714f6509fae66898db422ad803b951257db78
Status: Downloaded newer image for alpine:latest
docker.io/library/alpine:latest         #鏡像的構

備注:docker pull alpine 可改成 docker.io/library/apline:latest

三、查看本地鏡像

[root@docker network-scripts]# docker images      #查看本地鏡像
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
alpine              latest              cc0abc535e36        12 days ago         5.59MB
hello-world         latest              fce289e99eb9        12 months ago       1.84kB

四、給鏡像打標簽

[root@docker network-scripts]# docker tag cc0abc535e36 docker.io/zhoumingkang/alpine:v3.10.3
# cc0abc535e36:鏡像IMAGE ID
#docker.io/zhoumingkang/alpine:v3.10.3:鏡像的結構
[root@docker network-scripts]# docker images
REPOSITORY            TAG                 IMAGE ID            CREATED             SIZE
alpine                latest              cc0abc535e36        12 days ago         5.59MB
zhoumingkang/alpine   v3.10.3             cc0abc535e36        12 days ago         5.59MB
hello-world           latest              fce289e99eb9        12 months ago       1.84kB

五、把zhoumingkang/alpine:v3.10.3推送到自己的倉庫上

[root@docker network-scripts]# docker push docker.io/zhoumingkang/alpine:v3.10.3
The push refers to repository [docker.io/zhoumingkang/alpine]
6b27de954cca: Mounted from library/alpine 
v3.10.3: digest: sha256:3983cc12fb9dc20a009340149e382a18de6a8261b0ac0e8f5fcdf11f8dd5937e size: 528

Docker  之  鏡像管理

六、移除一個標簽

[root@docker network-scripts]# docker images
REPOSITORY            TAG                 IMAGE ID            CREATED             SIZE
zhoumingkang/alpine   v3.10.3             cc0abc535e36        12 days ago         5.59MB
alpine                latest              cc0abc535e36        12 days ago         5.59MB
alpine                3.9.4               055936d39205        8 months ago        5.53MB
hello-world           latest              fce289e99eb9        12 months ago       1.84kB
[root@docker network-scripts]# docker rmi docker.io/library/alpine:latest
Untagged: alpine:latest    #移除標簽
Untagged: alpine@sha256:2171658620155679240babee0a7714f6509fae66898db422ad803b951257db78
[root@docker network-scripts]# docker images
REPOSITORY            TAG                 IMAGE ID            CREATED             SIZE
zhoumingkang/alpine   v3.10.3             cc0abc535e36        12 days ago         5.59MB
alpine                3.9.4               055936d39205        8 months ago        5.53MB
hello-world           latest              fce289e99eb9        12 months ago       1.84kB

七、刪除一個鏡像

[root@docker network-scripts]# docker images
REPOSITORY            TAG                 IMAGE ID            CREATED             SIZE
zhoumingkang/alpine   v3.10.3             cc0abc535e36        12 days ago         5.59MB
alpine                3.9.4               055936d39205        8 months ago        5.53MB
hello-world           latest              fce289e99eb9        12 months ago       1.84kB
[root@docker network-scripts]# docker rmi -f cc0abc535e36
Untagged: zhoumingkang/alpine:v3.10.3
Untagged: zhoumingkang/alpine@sha256:3983cc12fb9dc20a009340149e382a18de6a8261b0ac0e8f5fcdf11f8dd5937e
Deleted: sha256:cc0abc535e36a7ede71978ba2bbd8159b8a5420b91f2fbc520cdf5f673640a34
Deleted: sha256:6b27de954cca6332272e7709b7d8ceccee1489d9452af73391df360a26123580
[root@docker network-scripts]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
alpine              3.9.4               055936d39205        8 months ago        5.53MB
hello-world         latest              fce289e99eb9        12 months ago       1.84kB

八、把剛剛刪除的鏡像,從遠程倉庫再拉取回來

[root@docker network-scripts]# docker pull docker.io/zhoumingkang/alpine:v3.10.3
v3.10.3: Pulling from zhoumingkang/alpine
e6b0cf9c0882: Pull complete 
Digest: sha256:3983cc12fb9dc20a009340149e382a18de6a8261b0ac0e8f5fcdf11f8dd5937e
Status: Downloaded newer image for zhoumingkang/alpine:v3.10.3
docker.io/zhoumingkang/alpine:v3.10.3
[root@docker network-scripts]# docker images
REPOSITORY            TAG                 IMAGE ID            CREATED             SIZE
zhoumingkang/alpine   v3.10.3             cc0abc535e36        12 days ago         5.59MB
alpine                3.9.4               055936d39205        8 months ago        5.53MB
hello-world           latest              fce289e99eb9        12 months ago       1.84kB

九、Docker 鏡像特性

Docker  之  鏡像管理

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

乌兰县| 德清县| 石城县| 定安县| 林西县| 惠水县| 博野县| 胶南市| 米脂县| 乌拉特前旗| 新郑市| 射洪县| 南涧| 四平市| 崇仁县| 邛崃市| 九龙坡区| 托克逊县| 平定县| 建昌县| 武安市| 卢龙县| 和田市| 名山县| 孟州市| 齐齐哈尔市| 新民市| 广安市| 河津市| 阿拉善盟| 威信县| 浦城县| 时尚| 平度市| 三都| 内黄县| 交口县| 上栗县| 措美县| 吴桥县| 庄河市|