我找到了解决办法。我使用这个命令“docker-compose run app bundle install”来安装 puma 并且它安装了它的接缝但是钢我有同样的错误。
Attaching to ibuy7_db_1, ibuy7_db_backup_1, ibuy7_app_1, ibuy7_nginx_1
app_1 | bundler: command not found: puma
app_1 | Install missing gem executables with bundle install
ibuy7_db_backup_1 exited with code 0
db_1 | LOG: database system was shut down at 2017-08-13 07:30:28 UTC
db_1 | LOG: MultiXact member wraparound protections are now enabled
db_1 | LOG: autovacuum launcher started
db_1 | LOG: database system is ready to accept connections
db_1 | LOG: received smart shutdown request
db_1 | LOG: autovacuum launcher shutting down
db_1 | LOG: shutting down
db_1 | LOG: database system is shut down
db_1 | LOG: database system was shut down at 2017-08-13 07:35:16 UTC
db_1 | LOG: MultiXact member wraparound protections are now enabled
db_1 | LOG: database system is ready to accept connections
db_1 | LOG: autovacuum launcher started
db_1 | LOG: received smart shutdown request
db_1 | LOG: autovacuum launcher shutting down
db_1 | LOG: shutting down
db_1 | LOG: database system is shut down
db_1 | LOG: database system was shut down at 2017-08-13 07:41:30 UTC
db_1 | LOG: MultiXact member wraparound protections are now enabled
db_1 | LOG: database system is ready to accept connections
db_1 | LOG: autovacuum launcher started
ibuy7_app_1 exited with code 127
nginx_1 | 2017/08/13 07:44:27 [emerg] 1#1: host not found in upstream "app:3000" in /etc/nginx/conf.d/default.conf:2
nginx_1 | nginx: [emerg] host not found in upstream "app:3000" in /etc/nginx/conf.d/default.conf:2
ibuy7_nginx_1 exited with code 1