Skip to content

Commit 3103e5f

Browse files
jyn514Joshua Nelson
authored and
Joshua Nelson
committed
document that the one-liner starts a new container
1 parent 9d1a197 commit 3103e5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,11 @@ If you want to explore or edit database manually, you can connect to the databas
167167
with the `psql` command.
168168

169169
```sh
170+
# NOTE: this creates a new container that will keep running after you exit
171+
# To remove the new container, run `docker-compose down`.
170172
docker exec -it "$(docker-compose run -d db && sleep 1)" psql -U cratesfyi
173+
# You only need to start the container once, in the future you can attach to it like so:
174+
docker exec -it "$(docker container ps | grep postgres | cut -d ' ' -f 1)" psql -U cratesfyi
171175
```
172176

173177
The database contains a blacklist of crates that should not be built.

0 commit comments

Comments
 (0)