ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ## docker tag 赋值并修改镜像名[标签] ## 语法 ``` docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG] ``` ## 实例 ### 给标记 id 打标签 ``` $ docker tag 0e5574283393 fedora/httpd:version1.0 docker tag demo:v2 demo:v23 ``` ### 给名称打标签 ``` > docker images REPOSITORY TAG IMAGE ID CREATED SIZE nginx latest bc9a0695f571 7 days ago 133MB > docker tag nginx nginx:3.0 > docker images REPOSITORY TAG IMAGE ID CREATED SIZE nginx 3.0 bc9a0695f571 7 days ago 133MB ``` 或带上斜线 ``` > docker tag httpd fedora/httpd:version1.0 ```