企业🤖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 ```