Skip to content
This repository was archived by the owner on Mar 8, 2023. It is now read-only.

Commit 9488ef1

Browse files
authored
Docker docs with env support for credential
1 parent 252dced commit 9488ef1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@ Download and extract the [latest release](https://github.com/keylockerbv/secreth
1717

1818
### Docker
1919

20-
You can also run the proxy as a [Docker container](). Assuming you have a SecretHub credential stored in the default `$HOME/.secrethub` location, run:
20+
You can also run the proxy as a [Docker container](https://hub.docker.com/r/secrethubio/proxy). Assuming you have a SecretHub credential stored in the default `$HOME/.secrethub` location, you can run it with the credential mounted as volume:
2121

2222
```
23-
docker run -p 8080:8080 --name secrethub -v /$HOME/.secrethub:/secrethub secrethubio/proxy
23+
docker run -p 8080:8080 --name secrethub -v $HOME/.secrethub:/secrethub secrethubio/proxy
24+
```
25+
26+
You can also pass in the credential as an environment variable:
27+
28+
```
29+
docker run -p 8080:8080 --name secrethub -e SECRETHUB_CREDENTIAL=$(cat $HOME/.secrethub/credential) secrethubio/proxy
2430
```
2531

2632
## Usage

0 commit comments

Comments
 (0)