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

Commit 64d0b9b

Browse files
committed
Set explicit localhost in Docker docs
1 parent 50a7d15 commit 64d0b9b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@ You can also run the proxy as a [Docker container](https://hub.docker.com/r/secr
4242
Assuming you have a SecretHub credential stored in the default `$HOME/.secrethub` location, you can run it with the credential mounted as a volume:
4343

4444
```
45-
docker run -p 8080:8080 --name secrethub -v $HOME/.secrethub:/secrethub secrethub/http-proxy
45+
docker run -p 127.0.0.1:8080:8080 --name secrethub -v $HOME/.secrethub:/secrethub secrethub/http-proxy
4646
```
4747

4848
You can also pass in the credential as an environment variable:
4949

5050
```
51-
docker run -p 8080:8080 --name secrethub -e SECRETHUB_CREDENTIAL=$(cat $HOME/.secrethub/credential) secrethub/http-proxy
51+
docker run -p 127.0.0.1:8080:8080 --name secrethub -e SECRETHUB_CREDENTIAL=$(cat $HOME/.secrethub/credential) secrethub/http-proxy
5252
```
5353

5454
If upon signup you've chosen to lock your credential with a passphrase, run the container with `-it` to get prompted for your passphrase.
5555

5656
```
57-
docker run -it -p 8080:8080 --name secrethub -e SECRETHUB_CREDENTIAL=$(cat $HOME/.secrethub/credential) secrethub/http-proxy
57+
docker run -it -p 127.0.0.1:8080:8080 --name secrethub -e SECRETHUB_CREDENTIAL=$(cat $HOME/.secrethub/credential) secrethub/http-proxy
5858
```
5959

6060
Alternatively, the passphrase can be sourced from the `SECRETHUB_CREDENTIAL_PASSPHRASE` environment variable.

0 commit comments

Comments
 (0)