English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Docker tag Command

Docker Command Reference

docker tag : Tag a local image and assign it to a repository.

Syntax

docker tag [OPTIONS] IMAGE[:TAG] [REGISTRYHOST/][USERNAME/]NAME[:TAG]

Online Examples

Tagging image ubuntu:15.10Tagged as w3codebox/ubuntu:v3 Image.

root@w3codebox:~# docker tag ubuntu:15.10 w3codebox/ubuntu:v3
root@w3codebox:~# docker images   w3codebox/ubuntu:v3
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
w3codebox/ubuntu       v3                  4e3b13c8a266        3 months ago        136.3 MB

Docker Command Reference