以下コマンドでコンテナが起動できずにいます。
昨日までは起動できたのですが、今日になってできなくなりました。
$ docker-compose up -d rails_db_1 is up-to-date Starting rails_web_1 ... done
しかしState Exit 0
となっており、起動できていません。
$ docker-compose ps The system cannot find the path specified. Name Command State Ports --------------------------------------------------------------------------- rails_db_1 docker-entrypoint.sh mysqld Up 3306/tcp, 33060/tcp rails_web_1 bundle exec rails s -p 300 ... Exit 0
$ docker-compose up rails_db_1 is up-to-date Starting rails_web_1 ... done Attaching to rails_db_1, rails_web_1 db_1 | 2020-01-23 23:53:57+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.29-1debian9 started. . . . db_1 | Version: '5.7.29' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL) web_1 | Could not locate Gemfile or .bundle/ directory rails_web_1 exited with code 10
Could not locate Gemfile or .bundle/ directory
はGemfileや.bundleが見つからないという意味だと思いますが、
dockerfileを見るとGemfileのパスは以前作成したままで変更されていません。
FROM ruby:2.4.5 RUN apt-get update -qq && apt-get install -y build-essential nodejs RUN mkdir /app WORKDIR /app COPY Gemfile /app/Gemfile COPY Gemfile.lock /app/Gemfile.lock RUN bundle install COPY . /app
Gemfileはアプリ名/Dockerfile
のパスにあります。
この設定で昨日までは起動できたのですが、、、
すみません、どこの設定がおかしいのか教えていただけないでしょうか。
よろしくお願いします。
あなたの回答
tips
プレビュー