mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
498 B
Plaintext
22 lines
498 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# docker image tag
|
|
|
|
> Assign tags to existing Docker images.
|
|
> More information: <https://docs.docker.com/reference/cli/docker/image/tag/>.
|
|
|
|
- Assign a name and tag to a specific image ID:
|
|
|
|
`docker {{[tag|image tag]}} {{id}} {{name}}:{{tag}}`
|
|
|
|
- Assign a tag to a specific image:
|
|
|
|
`docker {{[tag|image tag]}} {{image}}:{{current_tag}} {{image}}:{{new_tag}}`
|
|
|
|
- Display help:
|
|
|
|
`docker {{[tag|image tag]}}`
|