4-Docker命令之docker tag

1.docker tag介绍

docker tag命令是用来给docker镜像打标签

2.docker tag用法

docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]

复制代码
[root@centos79 ~]# docker tag --help

Usage:  docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]

Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE

Aliases:
  docker image tag, docker tag
[root@centos79 ~]# 

3.实例

3.1.docker镜像打标签

命令:

docker tag nginx:latest nginx:1.0

复制代码
[root@centos79 ~]# docker images | grep nginx
nginx                                latest        605c77e624dd   23 months ago   141MB
[root@centos79 ~]# docker tag nginx:latest nginx:1.0
[root@centos79 ~]# docker images | grep nginx
nginx                                1.0           605c77e624dd   23 months ago   141MB
nginx                                latest        605c77e624dd   23 months ago   141MB
[root@centos79 ~]# 
相关推荐
ldj202013 分钟前
docker 容器打包备份与镜像迭代更新
docker·容器
fandroid41 分钟前
树莓派通过docker安装kodbox可道云
运维·docker·容器
MZWeiei2 小时前
docker save/load VS docker export/import
docker·容器
❀͜͡傀儡师3 小时前
Docker安装SQL Server并使用Navicat远程连接
运维·docker·容器
特立独行的猫a5 小时前
PostgreSQL客户端工具介绍:从性能测试到跨平台管理
数据库·docker·postgresql·客户端·pgadmin4
AI视觉网奇5 小时前
audio2face docker方式
docker·ue5
yewq-cn6 小时前
自动更新 Docker 镜像
运维·docker·容器
我还为发觉7 小时前
Docker在系统运维中的应用与实现原理
运维·docker·容器
特立独行的猫a8 小时前
使用Docker/Docker Compose方式安装部署PostgreSQL指南
docker·postgresql·容器
幺零九零零8 小时前
Redis容器了解Docker底层
数据库·redis·docker