Docker 之 镜像管理
发表于:2025-12-01 作者:千家信息网编辑
千家信息网最后更新 2025年12月01日,一、镜像查询二、镜像拉取[root@docker network-scripts]# docker pull alpineUsing default tag: latest #默认最新版本,
千家信息网最后更新 2025年12月01日Docker 之 镜像管理
一、镜像查询
二、镜像拉取
[root@docker network-scripts]# docker pull alpineUsing default tag: latest #默认最新版本,可指定版本如:docker pull alpine:3.10.3latest: Pulling from library/alpine e6b0cf9c0882: Pull complete Digest: sha256:2171658620155679240babee0a7714f6509fae66898db422ad803b951257db78Status: Downloaded newer image for alpine:latestdocker.io/library/alpine:latest #镜像的构备注:docker pull alpine 可改成 docker.io/library/apline:latest三、查看本地镜像
[root@docker network-scripts]# docker images #查看本地镜像REPOSITORY TAG IMAGE ID CREATED SIZEalpine latest cc0abc535e36 12 days ago 5.59MBhello-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 imagesREPOSITORY TAG IMAGE ID CREATED SIZEalpine latest cc0abc535e36 12 days ago 5.59MBzhoumingkang/alpine v3.10.3 cc0abc535e36 12 days ago 5.59MBhello-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.3The push refers to repository [docker.io/zhoumingkang/alpine]6b27de954cca: Mounted from library/alpine v3.10.3: digest: sha256:3983cc12fb9dc20a009340149e382a18de6a8261b0ac0e8f5fcdf11f8dd5937e size: 528六、移除一个标签
[root@docker network-scripts]# docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEzhoumingkang/alpine v3.10.3 cc0abc535e36 12 days ago 5.59MBalpine latest cc0abc535e36 12 days ago 5.59MBalpine 3.9.4 055936d39205 8 months ago 5.53MBhello-world latest fce289e99eb9 12 months ago 1.84kB[root@docker network-scripts]# docker rmi docker.io/library/alpine:latestUntagged: alpine:latest #移除标签Untagged: alpine@sha256:2171658620155679240babee0a7714f6509fae66898db422ad803b951257db78[root@docker network-scripts]# docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEzhoumingkang/alpine v3.10.3 cc0abc535e36 12 days ago 5.59MBalpine 3.9.4 055936d39205 8 months ago 5.53MBhello-world latest fce289e99eb9 12 months ago 1.84kB七、删除一个镜像
[root@docker network-scripts]# docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEzhoumingkang/alpine v3.10.3 cc0abc535e36 12 days ago 5.59MBalpine 3.9.4 055936d39205 8 months ago 5.53MBhello-world latest fce289e99eb9 12 months ago 1.84kB[root@docker network-scripts]# docker rmi -f cc0abc535e36Untagged: zhoumingkang/alpine:v3.10.3Untagged: zhoumingkang/alpine@sha256:3983cc12fb9dc20a009340149e382a18de6a8261b0ac0e8f5fcdf11f8dd5937eDeleted: sha256:cc0abc535e36a7ede71978ba2bbd8159b8a5420b91f2fbc520cdf5f673640a34Deleted: sha256:6b27de954cca6332272e7709b7d8ceccee1489d9452af73391df360a26123580[root@docker network-scripts]# docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEalpine 3.9.4 055936d39205 8 months ago 5.53MBhello-world latest fce289e99eb9 12 months ago 1.84kB八、把刚刚删除的镜像,从远程仓库再拉取回来
[root@docker network-scripts]# docker pull docker.io/zhoumingkang/alpine:v3.10.3v3.10.3: Pulling from zhoumingkang/alpinee6b0cf9c0882: Pull complete Digest: sha256:3983cc12fb9dc20a009340149e382a18de6a8261b0ac0e8f5fcdf11f8dd5937eStatus: Downloaded newer image for zhoumingkang/alpine:v3.10.3docker.io/zhoumingkang/alpine:v3.10.3[root@docker network-scripts]# docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEzhoumingkang/alpine v3.10.3 cc0abc535e36 12 days ago 5.59MBalpine 3.9.4 055936d39205 8 months ago 5.53MBhello-world latest fce289e99eb9 12 months ago 1.84kB九、Docker 镜像特性
镜像
标签
仓库
版本
备注
特性
结构
查询
管理
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
小米刷机后不能连接到服务器
飞搜科技移动互联网
苹果系统服务器连接不了
东航软件开发待遇
杭州时讯网络技术有限公司
网络安全主题创意绘画命名格式
如何出租mc服务器
中国平安综合金融互联网科技
联想服务器bios
非你莫属最牛软件开发
苏州 嵌入式软件开发
杭州云网络技术报价
长沙网络安全儿童画
完美世界怎么退出服务器
网络安全的短句
四川智慧医养软件开发
鼎捷erp软件开发
宁波章鱼软件开发有限公司
政府网站网络安全报告
威猛公司网络安全事件
游戏服务器到期了会怎么样
js 安全 数据库访问
软件开发mac 可以吗?》
国企招不招网络安全
周口城尚互联网科技有限公司
网络安全策划活动背景图片
服务器分之8 2
网络安全简报范文模板2021
网络安全工作专项督查报告
巴音郭楞软件开发销售公司