Skip to content

Commit

Permalink
update guide
Browse files Browse the repository at this point in the history
Signed-off-by: Deepesha Burse <deepeshaburse@Deepeshas-MacBook-Air.local>
  • Loading branch information
Deepesha Burse authored and Deepesha Burse committed Jul 18, 2023
1 parent cff1300 commit f80ea82
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: Distribute Images and Artifacts in an OCI Image Layout
title: Distributing OCI Layouts
sidebar_position: 6
---

# Distributing an artifact to OCI Image Layout
# Distributing OCI Layouts

### Phase 1: Creating an OCI Image

Expand All @@ -16,9 +16,7 @@ FROM alpine
CMD echo 'hello world!'
```

FROM: This command initializes a new build stage and sets the Base Image for subsequent instructions.

CMD: This command is used to specify what needs to be run after the image has been built.
Our image is based on alpine and runs the command `echo hello world!`.

#### Step 1.2: Building the image using docker

Expand Down Expand Up @@ -68,7 +66,7 @@ tar -xf ./hello-world.tar -C hello-world

### Phase 2: Push the OCI Image to a Repository

You may use [`oras copy`](../commands/oras_copy.mdx) to push the OCI Image on your local disk to a repository.
You may use [`oras copy`](../commands/oras_copy.mdx) to push the OCI Image from your local disk to a repository.

In the following example, we are pushing the image to a remote repository like docker,

Expand All @@ -85,7 +83,7 @@ Digest: sha256:3fd491e6dc3ce66cae989d23b3f3d5752314cd1793d0c580d3fd8bb280d07809

### Phase 3: Pull the OCI Image from a Repository

You can simply pull the OCI image using the [`oras pull`](../commands/oras_pull.mdx) command.
You can pull the OCI image using the [`oras pull`](../commands/oras_pull.mdx) command.

```
oras pull docker.io/deepeshaburse/deepesha-test:v1
Expand Down

0 comments on commit f80ea82

Please sign in to comment.