From 259332bf21e80a400aea0d61d0480d8699b0cb0e Mon Sep 17 00:00:00 2001 From: Adrian Macneil Date: Sun, 1 Sep 2019 21:11:31 -0400 Subject: [PATCH] Update readme docker instructions Closes #87 --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 820f99b..7c1b4af 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,13 @@ $ sudo chmod +x /usr/local/bin/dbmate You can run dbmate using the official docker image: ```sh -$ docker run --rm amacneil/dbmate --help +$ docker run --rm -it amacneil/dbmate --help +``` + +If you wish to create or apply migrations, you will need to use Docker's [bind mount](https://docs.docker.com/storage/bind-mounts/) feature to make your local working directory available inside the dbmate container: + +```sh +$ docker run --rm -it -v "$(pwd)"/db:/db amacneil/dbmate new create_users_table ``` **Heroku**