Skip to content

Commit 6744ec1

Browse files
Bharath KaimalBharath Kaimal
authored andcommitted
addition of beginning of ICR tutorial using docker
1 parent bca7dda commit 6744ec1

File tree

1 file changed

+49
-3
lines changed

1 file changed

+49
-3
lines changed

docs/containers/imageregistry.md

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Some examples of an image registry are **Red Hat Quay** and **IBM Cloud Registry
88

99
[Learn More :fontawesome-solid-globe:](https://www.redhat.com/en/topics/cloud-native-apps/what-is-a-container-registry){ .md-button target="\_blank"}
1010

11-
## Tutorial
11+
## Quay Tutorial
1212

1313
=== "Podman"
1414

@@ -70,6 +70,12 @@ Some examples of an image registry are **Red Hat Quay** and **IBM Cloud Registry
7070
podman push quay.io/your_username/image_registry_name
7171
```
7272

73+
Your respository has now been pushed to Quay Container Registry!
74+
75+
To view your repository, click on the button below:
76+
77+
[Repositories](https://quay.io/repository/){ .md-button target="_blank"}
78+
7379
=== "Docker"
7480

7581
Make sure you have Docker Desktop installed and up and running.
@@ -107,6 +113,46 @@ Some examples of an image registry are **Red Hat Quay** and **IBM Cloud Registry
107113

108114
[Repositories](https://quay.io/repository/){ .md-button target="_blank"}
109115

110-
[Learn More about Quay :fontawesome-brands-redhat:](https://docs.redhat.com/en/documentation/red_hat_quay/3.5/html/deploy_red_hat_quay_for_proof-of-concept_non-production_purposes/pr01){ .md-button target="\_blank"}
116+
## IBM Cloud Registry Tutorial
117+
118+
=== "Podman"
119+
120+
=== "Docker"
121+
122+
Before you begin, you need to install the IBM Cloud CLI so that you can run the IBM Cloud ***ibmcloud*** commands.
123+
``` Bash title="Install the container-registry CLI"
124+
ibmcloud plugin install container-registry
125+
```
126+
127+
Then, you need to create a namespace. The namespace is created in the resource group that you specify so that you can configure access to resources within the namespace at the resource group level. If you don't specify a resource group, then the default is used.
128+
``` Bash title="Log in to IBM Cloud"
129+
ibmcloud login
130+
```
131+
132+
``` Bash title="Create namespace"
133+
ibmcloud cr namespace-add my_namespace
134+
```
135+
Make sure to replace "my_namespace" with your preferred namespace.
136+
137+
If you want to create the namespace in a specific resource group, use the following code **before** creating the namespace.
138+
``` Bash title="Specify a resource group"
139+
ibmcloud target -g resource_group
140+
```
141+
Replace "resource_group" with the resource group you want to create the namespace in.
142+
143+
``` Bash title="Validate namespace is created"
144+
ibmcloud cr namespace-list -v
145+
```
146+
147+
Next, you can pull images from IBM Cloud Registry to your local computer. Make sure [Docker](https://www.docker.com/products/container-runtime/#/download){target="_blank"} is installed and up and running.
148+
149+
``` Bash title="Pull image to local computer"
150+
docker pull source_image:tag
151+
```
152+
Replace "source_image" with ther respository of the image and "tag" with the tag of the image that you want to use. Below is an example.
153+
154+
```
155+
docker pull hello-world:latest
156+
```
111157

112-
[Learn More about ICR :fontawesome-solid-cloud:](https://cloud.ibm.com/docs/Registry?topic=Registry-getting-started&interface=ui){ .md-button target="\_blank"}
158+
[Learn More about Quay :fontawesome-brands-redhat:](https://docs.redhat.com/en/documentation/red_hat_quay/3.5/html/deploy_red_hat_quay_for_proof-of-concept_non-production_purposes/pr01){ .md-button target="\_blank"} [Learn More about ICR :fontawesome-solid-cloud:](https://cloud.ibm.com/docs/Registry?topic=Registry-getting-started&interface=ui){ .md-button target="\_blank"}

0 commit comments

Comments
 (0)