Skip to content

Commit b6a0aac

Browse files
committed
Fixes
1 parent 2b2da7f commit b6a0aac

File tree

5 files changed

+168
-12
lines changed

5 files changed

+168
-12
lines changed

docs/CNAME

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

docs/containers/imageregistry.md

Lines changed: 157 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,42 +117,193 @@ Some examples of an image registry are **Red Hat Quay** and **IBM Cloud Registry
117117

118118
=== "Podman"
119119

120+
**1. Install the Container Registry CLI**
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+
**2. Set up a namespace**
127+
128+
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.
129+
``` Bash title="Log in to IBM Cloud"
130+
ibmcloud login
131+
```
132+
133+
``` Bash title="Create namespace"
134+
ibmcloud cr namespace-add <my_namespace>
135+
```
136+
Make sure to replace <my_namespace\> with your preferred namespace.
137+
138+
If you want to create the namespace in a specific resource group, use the following code **before** creating the namespace.
139+
``` Bash title="Specify a resource group"
140+
ibmcloud target -g <resource_group>
141+
```
142+
Replace <resource_group\> with the resource group you want to create the namespace in.
143+
144+
To validate the namespace was created, run the following command.
145+
``` Bash title="Validate namespace is created"
146+
ibmcloud cr namespace-list -v
147+
```
148+
149+
**3. Pull images from a registry to your local computer**
150+
151+
Next, you can pull images from IBM Cloud Registry to your local computer. Make sure [Podman](https://podman.io/docs/installation){target="_blank"} is installed and up and running.
152+
153+
``` Bash title="Pull image to local computer"
154+
podman pull <source_image>:<tag>
155+
```
156+
Replace <source_image\> with the respository of the image and <tag\> with the tag of the image that you want to use.
157+
158+
Below is an example where <source_image\> is "hello-world" and <tag\> is "latest".
159+
160+
```
161+
podman pull hello-world:latest
162+
```
163+
164+
**4. Tag the image**
165+
166+
Tags are used as an optional identifier to specify a particular version of an image.
167+
168+
``` Bash title="Tag image"
169+
podman tag <source_image>:<tag> <region>.icr.io/<my_namespace>/<new_image_repo>:<new_tag>
170+
```
171+
Replace <source_image\> with the respository of the image, <tag\> with the tag of your local image that you previously pulled, <region\> with the name of your region, and <my_namespace\> with the namespace you created in step 2. You'll want to define the repository and tag of the image that you want to use in your namespace by replacing <new_image_repo\> and <new_tag\> respectively.
172+
173+
Below is an example where <source_image\> is "hello-world", <tag\> is "latest", <region\> is "uk", <my_namespace\> is "namespace1", <new_image_repo\> is "hw_repo", and <new_tag\> is "1".
174+
175+
```
176+
podman tag hello-word:latest uk.icr.io/namespace1/hw_repo:1
177+
```
178+
179+
**5. Push images to your namespace**
180+
181+
First, you'll need to log in to IBM Cloud Container Registry.
182+
183+
``` Bash title="Log in to ICR"
184+
ibmcloud cr login --client podman
185+
```
186+
187+
Once you've logged in, you can push the image up to your namespace in the registry.
188+
189+
``` Bash title="Push image to your namespace"
190+
podman push <region>.icr.io/<my_namespace>/<image_repo>:<tag>
191+
```
192+
193+
Replace <my_namespace\> with the namespace you created in step 2 and <image_repo\> and <tag\> with the repository and tag of the image you chose when you tagged the image in step 4.
194+
195+
Below is an example where <region\> is "uk", <my_namespace\> is "namespace1", <image_repo\> is "hw_repo", and <tag\> is "1".
196+
197+
```
198+
podman push uk.icr.io/namespace1/hw_repo:1
199+
```
200+
201+
**6. Verify that the image was pushed**
202+
203+
Verify that the image was pushed successfully by running the comand below.
204+
205+
```
206+
ibmcloud cr image-list
207+
```
208+
209+
You can also view your pushed images by clicking on the button below:
210+
211+
[Images](https://cloud.ibm.com/containers/registry/images){ .md-button target="_blank"}
212+
120213
=== "Docker"
121214

215+
**1. Install the Container Registry CLI**
216+
122217
Before you begin, you need to install the IBM Cloud CLI so that you can run the IBM Cloud ***ibmcloud*** commands.
123218
``` Bash title="Install the container-registry CLI"
124219
ibmcloud plugin install container-registry
125220
```
126221

222+
**2. Set up a namespace**
223+
127224
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.
128225
``` Bash title="Log in to IBM Cloud"
129226
ibmcloud login
130227
```
131228

132229
``` Bash title="Create namespace"
133-
ibmcloud cr namespace-add my_namespace
230+
ibmcloud cr namespace-add <my_namespace>
134231
```
135-
Make sure to replace "my_namespace" with your preferred namespace.
232+
Make sure to replace <my_namespace\> with your preferred namespace.
136233

137234
If you want to create the namespace in a specific resource group, use the following code **before** creating the namespace.
138235
``` Bash title="Specify a resource group"
139-
ibmcloud target -g resource_group
236+
ibmcloud target -g <resource_group>
140237
```
141-
Replace "resource_group" with the resource group you want to create the namespace in.
238+
Replace <resource_group\> with the resource group you want to create the namespace in.
142239

240+
To validate the namespace was created, run the following command.
143241
``` Bash title="Validate namespace is created"
144242
ibmcloud cr namespace-list -v
145243
```
146244

245+
**3. Pull images from a registry to your local computer**
246+
147247
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.
148248

149249
``` Bash title="Pull image to local computer"
150-
docker pull source_image:tag
250+
docker pull <source_image>:<tag>
151251
```
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.
252+
Replace <source_image\> with the respository of the image and <tag\> with the tag of the image that you want to use.
253+
254+
Below is an example where <source_image\> is "hello-world" and <tag\> is "latest".
153255

154256
```
155257
docker pull hello-world:latest
156258
```
157259

260+
**4. Tag the image**
261+
262+
Tags are used as an optional identifier to specify a particular version of an image.
263+
264+
``` Bash title="Tag image"
265+
docker tag <source_image>:<tag> <region>.icr.io/<my_namespace>/<new_image_repo>:<new_tag>
266+
```
267+
Replace <source_image\> with the respository of the image, <tag\> with the tag of your local image that you previously pulled, <region\> with the name of your region, and <my_namespace\> with the namespace you created in step 2. You'll want to define the repository and tag of the image that you want to use in your namespace by replacing <new_image_repo\> and <new_tag\> respectively.
268+
269+
Below is an example where <source_image\> is "hello-world", <tag\> is "latest", <region\> is "uk", <my_namespace\> is "namespace1", <new_image_repo\> is "hw_repo", and <new_tag\> is "1".
270+
271+
```
272+
docker tag hello-word:latest uk.icr.io/namespace1/hw_repo:1
273+
```
274+
275+
**5. Push images to your namespace**
276+
277+
First, you'll need to log in to IBM Cloud Container Registry.
278+
279+
``` Bash title="Log in to ICR"
280+
ibmcloud cr login --client docker
281+
```
282+
283+
Once you've logged in, you can push the image up to your namespace in the registry.
284+
285+
``` Bash title="Push image to your namespace"
286+
docker push <region>.icr.io/<my_namespace>/<image_repo>:<tag>
287+
```
288+
289+
Replace <my_namespace\> with the namespace you created in step 2 and <image_repo\> and <tag\> with the repository and tag of the image you chose when you tagged the image in step 4.
290+
291+
Below is an example where <region\> is "uk", <my_namespace\> is "namespace1", <image_repo\> is "hw_repo", and <tag\> is "1".
292+
293+
```
294+
docker push uk.icr.io/namespace1/hw_repo:1
295+
```
296+
297+
**6. Verify that the image was pushed**
298+
299+
Verify that the image was pushed successfully by running the comand below.
300+
301+
```
302+
ibmcloud cr image-list
303+
```
304+
305+
You can also view your pushed images by clicking on the button below:
306+
307+
[Images](https://cloud.ibm.com/containers/registry/images){ .md-button target="_blank"}
308+
158309
[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"}

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Bootcamp Overview
44

5-
This Cloud Native Bootcamp has been created to teach and guide IBMers, Business Partners, and clients what it takes to move to the cloud. We want to provide a way for anyone using this site to come away with some hands-on experience in each of the different technologies listed below.
5+
This Cloud Native Bootcamp has been created to teach and guide IBMers, Business Partners, and clients what it takes to move to the cloud. We want to provide a way for anyone using this site to come away with hands-on experience in each of the different technologies listed below.
66

77

88
## Concepts Covered
@@ -13,7 +13,7 @@ This Cloud Native Bootcamp has been created to teach and guide IBMers, Business
1313

1414
---
1515

16-
Moving to the cloud comes with some new concepts and standards that should be understood before starting your journey to cloud. Learn about them by clicking the link below.
16+
Moving to the cloud comes with new concepts and standards that should be understood before starting your journey to cloud. Learn about them by clicking the link below.
1717

1818
[:octicons-arrow-right-24: Getting started](./cloud/index.md)
1919

@@ -45,4 +45,4 @@ This Cloud Native Bootcamp has been created to teach and guide IBMers, Business
4545

4646
## How to approach the Bootcamp
4747

48-
This bootcamp has been designed with a
48+
This bootcamp has been designed to give the students a better hands-on experience than just copy/paste. The bootcamp uses the approach of "Read, listen, watch, try it out". We want students to take what they have heard and use their resources to solve the labs on their own without much instruction.

docs/openshift/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Kubernetes is an open source container orchestration platform that automates dep
66

77
## What is OpenShift?
88

9+
Red Hat OpenShift is an open-source container platform that runs on the Red Hat enterprise Linux operating system and Kubernetes. It is typically referred to as a "Platform as a Service" (PaaS) due to its combination of services for enterprise businesses, including the Kubernetes platform and Docker container images. OpenShift offers additional features exclusive to its enterprise platform. It allows for deploying apps on highly available clusters and securing hybrid workloads with developer-focused tools and seamless integration of IBM, CloudPak, and Red Hat content.
10+
11+
Red Hat OpenShift provides a uniform platform across public and private clouds for full portability, standardization, and ease of adoption. It offers various forms to meet customer needs, such as Red Hat OpenShift Container Platform (OCP), Red Hat OpenShift Dedicated (OSD), Microsoft Azure Red Hat OpenShift, and Red Hat OpenShift Online.
12+
13+
In summary, Red Hat OpenShift is an enterprise-ready Kubernetes container platform with full-stack automated operations for managing hybrid cloud and multi-cloud deployments. It offers multiple offerings to cater to diverse customer requirements and ensures a consistent experience across public and private clouds.
14+
915
## What is Kubernetes?
1016

1117
Kubernetes—also known as ‘k8s’ or ‘kube’—is a container orchestration platform for scheduling and automating the deployment, management, and scaling of containerized applications.

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ theme:
2222
logo: images/watson-white-logo.png
2323
favicon: images/watson-white-logo.png
2424
font:
25-
text: IBM Plex Sans Light
25+
text: IBM Plex Sans
2626
plugins:
2727
- search
2828
- git-revision-date-localized:
@@ -74,7 +74,7 @@ nav:
7474
- labs/index.md
7575
- Containers Lab: labs/containers/index.md
7676
- Image Registries Lab: labs/containers/container-registry/index.md
77-
- <div class="header">Kubernetes/OpenShift</div>:
77+
- Kubernetes/OpenShift:
7878
- openshift/index.md
7979
- Container Orchestration Concepts: openshift/orchestrationConcepts.md
8080
- <div class="header">OpenShift Objects</div>:

0 commit comments

Comments
 (0)