Update readme docker instructions

Closes #87
This commit is contained in:
Adrian Macneil 2019-09-01 21:11:31 -04:00 committed by GitHub
parent 2c83de332c
commit 259332bf21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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**