tldr/pages/common/docker-tag.md

17 lines
353 B
Markdown
Raw Normal View History

2023-03-15 12:42:25 +00:00
# docker tag
> Assign tags to existing Docker images.
> More information: <https://docs.docker.com/engine/reference/commandline/tag/>.
- Assign a name and tag to a specific image ID:
`docker tag {{id}} {{name}}:{{tag}}`
- Assign a tag to a specific image:
`docker tag {{image}}:{{current_tag}} {{image}}:{{new_tag}}`
- Display help:
`docker tag`