Skip to content

Commit de668a4

Browse files
committed
chore: edit text & formatting
1 parent c19d30e commit de668a4

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

setup/coder-for-docker/local.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -210,20 +210,17 @@ If you're interested in using Docker as a workspace provider, please see our
210210

211211
## Accessing the local PostgreSQL database
212212

213-
If you would like to type in SQL queries interactively with the local PostgreSQL
214-
database using the `psql` [terminal-based
213+
To query the local PostgreSQL database using the `psql` [terminal-based
215214
front-end](https://www.postgresql.org/docs/13/app-psql.html), follow these
216215
steps.
217216

218-
Run `docker ps` to get the name of the Coder container.
217+
1. Run `docker ps` to get the name of the Coder container.
219218

220-
```sh
221-
docker exec -it <name of your Coder container> /bin/bash
222-
```
219+
1. Exec into the Coder container and connect to the database.
223220

224-
```sh
225-
psql --username=coder --host=0.0.0.0 --port=5433 --dbname=postgres
226-
```
221+
```console
222+
docker exec -it <CODER_CONTAINER> psql --username=coder --host=0.0.0.0 --port=5433 --dbname=postgres
223+
```
227224

228225
## Known issues
229226

0 commit comments

Comments
 (0)