Skip to content

Commit

Permalink
Move the command to Naming convetion
Browse files Browse the repository at this point in the history
  • Loading branch information
wienans authored Feb 6, 2024
1 parent 3e03aca commit 855d54e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/content/usage/packages/container.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ Images must follow this naming convention:

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

Name your image according to the convetion with the following command:

```shell
docker tag {image}:{tag} gitea.example.com/{owner}/{image}:{tag}
```

For example, these are all valid image names for the owner `testuser`:

`gitea.example.com/testuser/myimage`
Expand Down Expand Up @@ -69,12 +75,6 @@ For example:
docker push gitea.example.com/testuser/myimage:latest
```

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:

```shell
docker tag {image}:{tag} gitea.example.com/{owner}/{image}:{tag}
```

## Pull an image

Pull an image by executing the following command:
Expand Down

0 comments on commit 855d54e

Please sign in to comment.