1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

docker-composeで「docker-compose up」ができないとき

Posted at

docker-composeでdocker-compose upを実行すると、以下のように

(略)

web_1        | 
web_1        | - Gracefully stopping, waiting for requests to finish
web_1        | === puma shutdown: 2019-09-09 13:48:21 +0000 ===
web_1        | - Goodbye!
web_1        | Exiting
app_web_1 exited with code 1

といったエラーが出てしまうときがあります。

解決方法

docker-composeでは、gemを新規で導入するときには、まず以下のコマンドを実行すれば良いだけでした。

$ docker-compose build

それから、docker-compose upを実行すれば、通常通りコンテナが生成されるようになります。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?