Update README_docker_io.md (#3405)

* Update README_docker_io.md

Fix image names in Docker run commands README to include "hashicorp/" prefix to make sure that local trash images will not pollute the process.

* doc: Add trailing backslashes to make it copyable

---------

Co-authored-by: Michael Li <michael.li@hashicorp.com>
pull/4777/head
pedrorsantana 2 years ago committed by GitHub
parent f7e59d5d04
commit 9cb2d4fa5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -38,9 +38,9 @@ The postgres URL setting is defined with `env://BOUNDARY_POSTGRES_URL` so it can
```bash
docker run \
--network host
-e 'BOUNDARY_POSTGRES_URL=postgresql://postgres:postgres@0.0.0.0:5432/postgres?sslmode=disable'
boundary
--network host \
-e 'BOUNDARY_POSTGRES_URL=postgresql://postgres:postgres@0.0.0.0:5432/postgres?sslmode=disable' \
hashicorp/boundary
```
### Database Init
@ -53,7 +53,7 @@ initialize the database using the default `config.hcl`:
docker run \
--network host \
-e 'BOUNDARY_POSTGRES_URL=postgresql://postgres:postgres@0.0.0.0:5432/postgres?sslmode=disable' \
boundary database init -config /boundary/config.hcl
hashicorp/boundary database init -config /boundary/config.hcl
```
If you want to run this with your own `config.hcl` (assuming `config.hcl` is located at `$(pwd)/config.hcl`):
@ -63,7 +63,7 @@ docker run \
--network host \
-e 'BOUNDARY_POSTGRES_URL=postgresql://postgres:postgres@0.0.0.0:5432/postgres?sslmode=disable' \
-v "$(pwd)":/boundary/ \
boundary database init -config /boundary/config.hcl
hashicorp/boundary database init -config /boundary/config.hcl
```
### Database Migration
@ -76,7 +76,7 @@ you will need to apply the database migrations:
docker run \
--network host \
-e 'BOUNDARY_POSTGRES_URL=postgresql://postgres:postgres@0.0.0.0:5432/postgres?sslmode=disable' \
boundary database migrate -config /boundary/config.hcl
hashicorp/boundary database migrate -config /boundary/config.hcl
```
If you want to run this with your own `config.hcl` (assuming `config.hcl` is located at `$(pwd)/config.hcl`):
@ -86,7 +86,7 @@ docker run \
--network host \
-e 'BOUNDARY_POSTGRES_URL=postgresql://postgres:postgres@0.0.0.0:5432/postgres?sslmode=disable' \
-v "$(pwd)":/boundary/ \
boundary database migrate -config /boundary/config.hcl
hashicorp/boundary database migrate -config /boundary/config.hcl
```
### Server
@ -100,7 +100,7 @@ docker run \
-p 9201:9201 \
-p 9202:9202 \
-e 'BOUNDARY_POSTGRES_URL=postgresql://postgres:postgres@0.0.0.0:5432/postgres?sslmode=disable' \
boundary
hashicorp/boundary
```
Start a Boundary server using your own `config.hcl`, assuming it's located at `$(pwd)/config.hcl`:
@ -113,5 +113,5 @@ docker run \
-p 9202:9202 \
-v "$(pwd)":/boundary/ \
-e 'BOUNDARY_POSTGRES_URL=postgresql://postgres:postgres@0.0.0.0:5432/postgres?sslmode=disable' \
boundary
hashicorp/boundary
```

Loading…
Cancel
Save