Skip to content

Commit f247fe0

Browse files
committed
Move the command to Naming convetion
1 parent 52e5aab commit f247fe0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

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

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

42+
Name your image according to the convetion with the following command:
43+
44+
```shell
45+
docker tag {image}:{tag} gitea.example.com/{owner}/{image}:{tag}
46+
```
47+
4248
For example, these are all valid image names for the owner `testuser`:
4349

4450
`gitea.example.com/testuser/myimage`
@@ -69,12 +75,6 @@ For example:
6975
docker push gitea.example.com/testuser/myimage:latest
7076
```
7177

72-
If you run into the error "An image does not exist locally with the tag" simply run the following command and retry the push afterwards:
73-
74-
```shell
75-
docker tag {image}:{tag} gitea.example.com/{owner}/{image}:{tag}
76-
```
77-
7878
## Pull an image
7979

8080
Pull an image by executing the following command:

0 commit comments

Comments
 (0)