Skip to content

Commit 77b2f4d

Browse files
authored
Merge pull request #107337 from dlepow/acrfix3
[ACR] Oras update for Win
2 parents c4371fa + 1aaba2f commit 77b2f4d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

articles/container-registry/container-registry-oci-artifacts.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Push and pull Open Container Initiative (OCI) artifacts using a pri
44
author: SteveLasker
55
manager: gwallace
66
ms.topic: article
7-
ms.date: 08/30/2019
7+
ms.date: 03/11/2020
88
ms.author: stevelas
99
---
1010

@@ -61,12 +61,22 @@ echo "Here is an artifact!" > artifact.txt
6161

6262
Use the `oras push` command to push this text file to your registry. The following example pushes the sample text file to the `samples/artifact` repo. The registry is identified with the fully qualified registry name *myregistry.azurecr.io* (all lowercase). The artifact is tagged `1.0`. The artifact has an undefined type, by default, identified by the *media type* string following the filename `artifact.txt`. See [OCI Artifacts](https://github.com/opencontainers/artifacts) for additional types.
6363

64+
**Linux**
65+
6466
```bash
6567
oras push myregistry.azurecr.io/samples/artifact:1.0 \
6668
--manifest-config /dev/null:application/vnd.unknown.config.v1+json \
6769
./artifact.txt:application/vnd.unknown.layer.v1+txt
6870
```
6971

72+
**Windows**
73+
74+
```cmd
75+
.\oras.exe push myregistry.azurecr.io/samples/artifact:1.0 ^
76+
--manifest-config NUL:application/vnd.unknown.config.v1+json ^
77+
.\artifact.txt:application/vnd.unknown.layer.v1+txt
78+
```
79+
7080
Output for a successful push is similar to the following:
7181

7282
```console

0 commit comments

Comments
 (0)