File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -210,20 +210,17 @@ If you're interested in using Docker as a workspace provider, please see our
210
210
211
211
## Accessing the local PostgreSQL database
212
212
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
215
214
front-end] ( https://www.postgresql.org/docs/13/app-psql.html ) , follow these
216
215
steps.
217
216
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.
219
218
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.
223
220
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
+ ```
227
224
228
225
## Known issues
229
226
You can’t perform that action at this time.
0 commit comments