Linux command
docker-tag 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Tag an image
docker tag [source_image] [target_image]:[tag]
Tag for private registry
docker tag [image] [registry.example.com/image]:[tag]
Tag by image ID
docker tag [image_id] [repository]:[tag]
Add latest tag
docker tag [image]:[version] [image]:latest
说明
docker tag creates a tag that references an existing image. An image can have multiple tags. Tags are used to version images and prepare them for pushing to registries.
FAQ
What is the docker-tag command used for?
docker tag creates a tag that references an existing image. An image can have multiple tags. Tags are used to version images and prepare them for pushing to registries.
How do I run a basic docker-tag example?
Run `docker tag [source_image] [target_image]:[tag]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more docker-tag examples?
This page includes 4 examples for docker-tag, plus related commands for nearby Linux tasks.