Skip to content

Commit 4e0adbe

Browse files
committed
use --mount so snapshot file must exist
1 parent 447178a commit 4e0adbe

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,16 @@ you will not need to install PostgreSQL or any of its dependencies.
188188
-d \
189189
-e POSTGRES_PASSWORD=some-password-that-you-make-up \
190190
-v $uta_v:/var/lib/postgresql/data \
191-
-v $(pwd)/$uta_v.pgd.gz:/tmp/$uta_v.pgd.gz:ro \
191+
--mount type=bind,source="$(pwd)/$uta_v.pgd.gz",target="/tmp/$uta_v.pgd.gz",readonly \
192192
--name $uta_v \
193193
-p 127.0.0.1:5432:5432 \
194194
biocommons/uta:$uta_v
195195

196196
The first time you run this image, it will initialize a PostgreSQL database from the snapshot.
197197

198-
The next time you run the image, you do not need to pass `-v $(pwd)/$uta_v.pgd.gz:/tmp/$uta_v.pgd.gz:ro`,
199-
since the database is already initialized.
198+
On subsequent runs, you can run the container by:
199+
200+
$ docker start $uta_v
200201

201202
`-d` starts the container in daemon (background) mode. To see
202203
progress:

0 commit comments

Comments
 (0)