Skip to content

Commit f2d5c6e

Browse files
wienanswxiaoguangKN4CK3R
authored
Docker Tag Information in Docs (go-gitea#29047)
Add more details for the docker tag when using container registry. --------- Co-authored-by: wxiaoguang <[email protected]> Co-authored-by: KN4CK3R <[email protected]>
1 parent 8e28316 commit f2d5c6e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/content/usage/packages/container.en-us.md

+10
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ Images must follow this naming convention:
3939

4040
`{registry}/{owner}/{image}`
4141

42+
When building your docker image, using the naming convention above, this looks like:
43+
44+
```shell
45+
# build an image with tag
46+
docker build -t {registry}/{owner}/{image}:{tag} .
47+
# name an existing image with tag
48+
docker tag {some-existing-image}:{tag} {registry}/{owner}/{image}:{tag}
49+
```
50+
51+
where your registry is the domain of your gitea instance (e.g. gitea.example.com).
4252
For example, these are all valid image names for the owner `testuser`:
4353

4454
`gitea.example.com/testuser/myimage`

0 commit comments

Comments
 (0)