I'm trying to install toshi over docker and am using an AWS RDS DB for postgres. After running
docker build -t=coinbase/toshi . on an AWS ec2 instance I attempt to run:
sudo docker run -e REDIS_URL=redis://toshi-001.ithq2b.0001.use2.cache.amazonaws.com:6379 -e DATABASE_URL=postgres://username:firstname.lastname@example.org:5432/toshi -e TOSHI_ENV=production coinbase/toshi foreman start
Which starts up the process but inevitably fails
00:22:59 web.1 | started with pid 11 00:22:59 block_worker.1 | started with pid 12 00:22:59 transaction_worker.1 | started with pid 14 00:22:59 peer_manager.1 | started with pid 15 00:23:01 web.1 |  Puma starting in cluster mode... 00:23:01 web.1 |  * Version 2.9.0 (ruby 2.1.2-p95), codename: Team High Five 00:23:01 web.1 |  * Min threads: 1, max threads: 16 00:23:01 web.1 |  * Environment: development 00:23:01 web.1 |  * Process workers: 3 00:23:01 web.1 |  * Phased restart available 00:23:01 web.1 |  * Listening on tcp://0.0.0.0:5000 00:23:01 web.1 |  Use Ctrl-C to stop 00:23:02 peer_manager.1 | /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/sequel-4.13.0/lib/sequel/adapters/postgres.rb:161:in `async_exec': PG::UndefinedTable: ERROR: relation "peers" does not exist (Sequel::DatabaseError) 00:23:02 peer_manager.1 | LINE 1: SELECT * FROM "peers" 00:23:02 peer_manager.1 | ^ 00:23:02 peer_manager.1 | from /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/sequel-4.13.0/lib/sequel/adapters/postgres.rb:161:in `block in execute_query' 00:23:02 peer_manager.1 | from /opt/rubies/ruby-2.1.2/lib/ruby/gems/2.1.0/gems/sequel-4.13.0/lib/sequel/database/logging.rb:33:in `log_yield' ...
So it seems that for some reason the DB is not able to migrate. When I run the same command without specifying that DB name toshi at the end of the postgres connection url I get a different error:
Unable to find image 'coinbase:latest' locally Pulling repository coinbase FATA Error: image library/coinbase:latest not found
Any ideas what could be causing either of these errors?