You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/modules/ROOT/pages/pushing.adoc
+15-10Lines changed: 15 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,29 +2,34 @@
2
2
3
3
So far you've been working with your container image locally. Now let's take it to a remote registry.
4
4
5
-
== Tagging an image
5
+
[IMPORTANT]
6
+
====
7
+
Before continuing you will need to have/create a container registry account. You can sign up for a free one at https://quay.io[Quay.io] or the https://hub.docker.com/[Docker Hub].
6
8
7
-
IMPORTANT: Before continuing you will need to have/create a container registry account. You can sign up for a free one at https://quay.io[Quay.io] or the https://hub.docker.com/[Docker Hub].
9
+
Instructions on how to create your Quay.io account are available in the xref:setup.adoc[Setup] section.
10
+
====
11
+
12
+
== Tagging an image
8
13
9
-
First you'll need to tag your image accordingly to the registry and name you gave to your repository. Say for example we create a repository `myrepository`.
14
+
First you'll need to tag your image accordingly to the registry and name you gave to your repository. Say for example we create a repository `my-image` in the organization id `your-user`.
10
15
11
16
If you have a Docker Hub account:
12
17
13
18
[.console-input]
14
19
[source,bash,subs="+macros,+attributes"]
15
20
----
16
-
podman tag my-image docker.io/myrepository/my-image
21
+
podman tag my-image docker.io/your-user/my-image
17
22
----
18
23
19
24
If using Quay.io:
20
25
21
26
[.console-input]
22
27
[source,bash,subs="+macros,+attributes"]
23
28
----
24
-
podman tag my-image quay.io/myrepository/my-image
29
+
podman tag my-image quay.io/your-user/my-image
25
30
----
26
31
27
-
IMPORTANT: Make sure to replace `myrepository` with the name of your own repository.
32
+
IMPORTANT: Make sure to replace `your-user` with the name of your own user id or organization id.
28
33
29
34
[TIP]
30
35
====
@@ -33,7 +38,7 @@ If you build your image already using the tag, you won't need to do this step be
33
38
[.console-input]
34
39
[source,bash,subs="+macros,+attributes"]
35
40
----
36
-
podman build -t quay.io/myrepository/my-image .
41
+
podman build -t quay.io/your-user/my-image .
37
42
----
38
43
39
44
====
@@ -45,7 +50,7 @@ If you now run `podman images` you'll see something like this:
45
50
----
46
51
REPOSITORY TAG IMAGE ID CREATED SIZE
47
52
my-image latest a63dec174904 55 minutes ago 516MB
48
-
quay.io/myrepository/my-image latest a63dec174904 55 minutes ago 516MB
53
+
quay.io/your-user/my-image latest a63dec174904 55 minutes ago 516MB
49
54
----
50
55
51
56
== Pushing an image
@@ -79,15 +84,15 @@ And finally you can push it, eg.:
79
84
[.console-input]
80
85
[source,bash,subs="+macros,+attributes"]
81
86
----
82
-
podman push quay.io/myrepository/my-image
87
+
podman push quay.io/your-user/my-image
83
88
----
84
89
85
90
You should have an output like this:
86
91
87
92
[.console-output]
88
93
[source,text]
89
94
----
90
-
The push refers to repository [quay.io/myrepository/my-image]
95
+
The push refers to repository [quay.io/your-user/my-image]
Copy file name to clipboardExpand all lines: documentation/modules/ROOT/pages/setup.adoc
+50-3Lines changed: 50 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,7 @@ TIP: By default, the commands in this tutorial are using podman, but you can use
10
10
11
11
[options="header"]
12
12
|===
13
-
|**Tool**|**macOS**|**Fedora**|**Windows**
14
-
13
+
| **Tool** | **macOS** | **Fedora** |**Windows**
15
14
16
15
| **Podman Desktop**
17
16
| https://podman-desktop.io/downloads[Podman Desktop for Mac, window="_blank"]
@@ -30,7 +29,55 @@ TIP: By default, the commands in this tutorial are using podman, but you can use
30
29
| `dnf install maven`
31
30
| https://maven.apache.org/download.cgi[Windows] (Make sure you set the `MAVEN_HOME` environment variable and add `%MAVEN_HOME%\bin` to your `PATH`)
32
31
32
+
|===
33
+
34
+
== Optional Tools
35
+
36
+
The following tools are optional, feel free to replace with your own preferred ones.
37
+
33
38
39
+
[options="header"]
34
40
|===
41
+
|**Tool**|**macOS**|**Fedora**|**Windows**
42
+
43
+
| **Visual Studio Code**
44
+
3+| Open https://code.visualstudio.com/download[Visual Studio Code download page, window="_blank"] and follow the installation instructions related to your operating system
45
+
46
+
| **curl**
47
+
| `brew install curl`
48
+
| `dnf install curl`
49
+
| https://curl.se/windows/[Windows]
50
+
51
+
|===
52
+
53
+
== Quay.io Account
54
+
55
+
**Quay.io** is a **container image registry** service, similar to _Docker Hub_, which is fully managed by Red Hat. It provides a centralized, secure place for users and organizations to store, build, and distribute their OCI (Open Container Initiative) container images.
56
+
57
+
NOTE: If you already have a _Quay.io_ account or a _Docker Hub_ account, you can skip this section.
58
+
59
+
=== Creating a Quay.io Account
60
+
61
+
A Quay.io account is typically linked to a **Red Hat account**.
62
+
63
+
1. **Navigate to Quay.io**: Go to the Quay.io website.
64
+
2. **Sign In/Register**: Look for a **Sign In** or **Register** option. Since Quay.io is part of Red Hat's ecosystem, you'll be directed to use your Red Hat credentials.
65
+
* If you **already have a Red Hat account**, sign in with those credentials.
66
+
* If you **do not have a Red Hat account**, you'll be prompted to create one first. Follow the prompts to register for a new Red Hat account.
67
+
3. **Confirm Username**: Upon your first login to Quay.io using your Red Hat credentials, you may be redirected to a page to **confirm your username**. This username will serve as your **namespace** (e.g., `quay.io/<your-username>/<repo-name>`) in the container registry.
68
+
69
+
70
+
=== Creating a Repository
71
+
72
+
A repository is a storage location for your container images and related artifacts: think of it as a folder or directory for a specific containerized application or component.
35
73
36
-
--
74
+
1. **Log In**: Sign in to your Quay.io account.
75
+
2. **Navigate to Repositories**: On your main page, or in the navigation menu, look for a **Repositories** section or a **+** icon (or a **Create Repository** button).
76
+
3. **Select Repository Type**: Choose **Container Image Repository** (or similar option, if prompted).
77
+
4. **Enter Details**:
78
+
* **Namespace**: Select your username (or an Organization you belong to).
79
+
* **Repository Name**: Enter a name for your repository (e.g., `my-first-app`). **Avoid** using names like `build`, `trigger`, `tag`, or `notification` as they can cause access and deletion issues.
80
+
5. **Visibility**: Choose the **Repository Visibility**:
81
+
* **Public**: Anyone can pull this image (free tier typically allows unlimited public repositories).
82
+
* **Private**: Only you and users/teams you explicitly grant access to can pull this image (usually limited/paid in the free tier).
83
+
6. **Create**: Click the **Create Repository** button. The repository will now appear in your list, ready to receive images.
0 commit comments