Skip to content

Commit

Permalink
Docker Tag Information in Docs (go-gitea#29047)
Browse files Browse the repository at this point in the history
Add more details for the docker tag when using container registry.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
  • Loading branch information
3 people authored and lunny committed Feb 24, 2024
1 parent 829b807 commit fea95ba
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/content/usage/packages/container.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit fea95ba

Please sign in to comment.