aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorwienans <40465543+wienans@users.noreply.github.com>2024-02-16 14:22:00 +0100
committerGitHub <noreply@github.com>2024-02-16 21:22:00 +0800
commitf2d5c6eddedb75f49af614e362b6f8b1317e3f5d (patch)
tree6b389c4cf105fea7af6451838ab24ac14d912288 /docs
parent8e2831611c06e84dd8fedf7a0b2cce9f98d4188f (diff)
downloadgitea-f2d5c6eddedb75f49af614e362b6f8b1317e3f5d.tar.gz
gitea-f2d5c6eddedb75f49af614e362b6f8b1317e3f5d.zip
Docker Tag Information in Docs (#29047)
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>
Diffstat (limited to 'docs')
-rw-r--r--docs/content/usage/packages/container.en-us.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/content/usage/packages/container.en-us.md b/docs/content/usage/packages/container.en-us.md
index 6be21c2b27..5676aa36fb 100644
--- a/docs/content/usage/packages/container.en-us.md
+++ b/docs/content/usage/packages/container.en-us.md
@@ -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`