Skip to content

Commit

Permalink
Update add-a-containerized-plugin.mdx
Browse files Browse the repository at this point in the history
Changing from `mycontainer` tag to semantic versioning, which is a requirement.
  • Loading branch information
gitrgoliveira authored Jan 16, 2025
1 parent ad79edf commit 6894b4b
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ secrets plugin for Docker:
```
1. Build the container image and assign an identifiable tag.
```shell-session
$ docker build -t hashicorp/vault-plugin-secrets-kv:mycontainer .
$ docker build -t hashicorp/vault-plugin-secrets-kv:1.0.0 .
```

## Step 5: Register the plugin
Expand All @@ -181,7 +181,7 @@ other external plugin that is available locally to Vault.
$ export SHA256=$(docker images \
--no-trunc \
--format="{{ .ID }}" \
hashicorp/vault-plugin-secrets-kv:mycontainer | cut -d: -f2)
hashicorp/vault-plugin-secrets-kv:1.0.0 | cut -d: -f2)
```

</CodeBlockConfig>
Expand All @@ -201,7 +201,7 @@ other external plugin that is available locally to Vault.
```shell-session
$ vault plugin register \
-sha256="${SHA256}" \
-oci_image=hashicorp/vault-plugin-secrets-kv:mycontainer \
-oci_image=hashicorp/vault-plugin-secrets-kv:1.0.0 \
secret my-kv-container
```

Expand Down Expand Up @@ -303,7 +303,7 @@ To use an alternative runtime:
$ vault plugin register \
-runtime=docker-rt \
-sha256="${SHA256}" \
-oci_image=hashicorp/vault-plugin-secrets-kv:mycontainer \
-oci_image=hashicorp/vault-plugin-secrets-kv:1.0.0 \
secret my-kv-container
```

Expand Down Expand Up @@ -334,4 +334,4 @@ following is true before trying again:

If you still get errors when registering a plugin, the recommended workaround is
to use the default Docker runtime (`runc`) as an
[alternative runtime](#alt-runtimes).
[alternative runtime](#alt-runtimes).

0 comments on commit 6894b4b

Please sign in to comment.