Skip to content

Commit 3f42de4

Browse files
authored
helm push need the username (docker#23338)
I think `docker` is too generic and we need to specify the default with is the username. --------- Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
1 parent d693c78 commit 3f42de4

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

content/manuals/docker-hub/repos/manage/hub-images/oci-artifacts.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,23 +78,24 @@ Steps:
7878

7979
```console
8080
$ helm package demo
81-
Successfully packaged chart and saved it to: /Users/hubuser/demo-0.1.0.tgz
81+
Successfully packaged chart and saved it to: demo-0.1.0.tgz
8282
```
8383

8484
3. Sign in to Docker Hub with Helm, using your Docker credentials.
8585

8686
```console
87-
$ helm registry login registry-1.docker.io -u hubuser
87+
$ helm registry login registry-1.docker.io -u <YOUR_DOCKER_USERNAME>
8888
```
8989

9090
4. Push the chart to a Docker Hub repository.
9191

9292
```console
93-
$ helm push demo-0.1.0.tgz oci://registry-1.docker.io/docker
93+
$ helm push demo-0.1.0.tgz oci://registry-1.docker.io/<YOUR_DOCKER_USERNAME>
9494
```
9595

96-
This uploads the Helm chart tarball to a `demo` repository in the `docker`
97-
namespace.
96+
This uploads the Helm chart tarball to a `demo` repository in the `<YOUR_DOCKER_USERNAME>`
97+
namespace. Running this command creates a `<YOUR_DOCKER_USERNAME>/demo` repository
98+
if one does not already exist.
9899

99100
5. Go to the repository page on Docker Hub. The **Tags** section of the page
100101
shows the Helm chart tag.
@@ -127,18 +128,18 @@ Steps:
127128
2. Sign in to Docker Hub using the ORAS CLI.
128129

129130
```console
130-
$ oras login -u hubuser registry-1.docker.io
131+
$ oras login -u <YOUR_DOCKER_USERNAME> registry-1.docker.io
131132
```
132133

133134
3. Push the file to Docker Hub.
134135

135136
```console
136-
$ oras push registry-1.docker.io/docker/demo:0.0.1 \
137+
$ oras push registry-1.docker.io/<YOUR_DOCKER_USERNAME>/demo:0.0.1 \
137138
--artifact-type=application/vnd.docker.volume.v1+tar.gz \
138139
myvolume.txt:text/plain
139140
```
140141

141-
This uploads the volume to a `demo` repository in the `docker` namespace. The
142+
This uploads the volume to a `demo` repository in the `<YOUR_DOCKER_USERNAME>` namespace. The
142143
`--artifact-type` flag specifies a special media type that makes Docker Hub
143144
recognize the artifact as a container volume.
144145

@@ -166,13 +167,13 @@ Steps:
166167
2. Sign in to Docker Hub using the ORAS CLI.
167168

168169
```console
169-
$ oras login -u hubuser registry-1.docker.io
170+
$ oras login -u <YOUR_DOCKER_USERNAME> registry-1.docker.io
170171
```
171172

172173
3. Push the file to Docker Hub.
173174

174175
```console
175-
$ oras push registry-1.docker.io/docker/demo:0.0.1 myartifact.txt:text/plain
176+
$ oras push registry-1.docker.io/<YOUR_DOCKER_USERNAME>/demo:0.0.1 myartifact.txt:text/plain
176177
```
177178

178179
4. Go to the repository page on Docker Hub. The **Tags** section on that page

0 commit comments

Comments
 (0)