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
[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
+
```
111
157
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