mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 17:13:50 +02:00
docker-tag: add page (#9940)
This commit is contained in:
parent
5a93c34dad
commit
fd1f3808bd
1 changed files with 16 additions and 0 deletions
16
pages/common/docker-tag.md
Normal file
16
pages/common/docker-tag.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# 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`
|
Loading…
Add table
Reference in a new issue