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>
This commit is contained in:
1 parent
f7e59d5d04
commit
9cb2d4fa5a
1 file changed
+9
-9
@@ -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
|
||||
```
|
||||
Reference in new issue
Block a user