Browse Source

Docker Tag Information in Docs (#29047) (#29362)

Backport #29047 

Add more details for the docker tag when using container registry.

Co-authored-by: wienans <40465543+wienans@users.noreply.github.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
tags/v1.21.7
Lunny Xiao 2 months ago
parent
commit
6624f257d3
No account linked to committer's email address
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      docs/content/usage/packages/container.en-us.md

+ 10
- 0
docs/content/usage/packages/container.en-us.md View File

@@ -39,6 +39,16 @@ Images must follow this naming convention:

`{registry}/{owner}/{image}`

When building your docker image, using the naming convention above, this looks like:

```shell
# build an image with tag
docker build -t {registry}/{owner}/{image}:{tag} .
# name an existing image with tag
docker tag {some-existing-image}:{tag} {registry}/{owner}/{image}:{tag}
```

where your registry is the domain of your gitea instance (e.g. gitea.example.com).
For example, these are all valid image names for the owner `testuser`:

`gitea.example.com/testuser/myimage`

Loading…
Cancel
Save