mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-02 22:54:54 +00:00
Update cheatsheets
This commit is contained in:
21
docker-tag
Normal file
21
docker-tag
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user