私はDockerを使い始めています.2ヶ月間、tutum/wordpressイメージに基づいてWordpressサイトを作っています。私は先週、最近Wordpressのサイトを編集しました。しかし、今私はウェブサイトを表示しようとすると何も得られません。Dockerのtutum/wordpressのコンテナに関する問題apache2とスーパーバイザーの問題
私は先週末から何も変更していません。私はSSHでUbuntuサーバーに接続できます。私はコンテナが実行されていることがわかり、コンテナにアタッチすることができます。コンテナに入ると、私はApacheとMySQLが動作していることを確認しました。私はファイルシステムをナビゲートすることができ、Wordpressはまだそこにあります。
ほとんどの場合、コンテナにはWebからアクセスできないようですが、トラブルシューティングを開始する場所については紛失しています。
更新:それはsupervisordとapacheに問題があるようです。ドッカーのログによると、再試行回数が多すぎるため、Apacheが致命的な状態になっています。ただし、sudo service apache2 statusを使用すると、Apacheが実行中であることを示します。 /etc/init.d/apache2 stopコマンドを発行した後、Apacheはまだ実行中です。私はそれを停止することはできません。 ps -AはApacheの実行を表示せず、スーパーバイザのみを表示します。私はまだかなり混乱しています。
Docker Port: 80/tcp -> 0.0.0.0:80
ドッカーログは:
2016-05-12 20:01:39,534 INFO waiting for mysqld to die
=> Using an existing volume of MySQL
/usr/lib/python2.7/dist-packages/supervisor/options.py:295: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
'Supervisord is running as root and it is searching '
2016-05-12 20:02:16,501 CRIT Supervisor running as root (no user in config file)
2016-05-12 20:02:16,501 WARN Included extra file "/etc/supervisor/conf.d/supervisord-mysqld.conf" during parsing
2016-05-12 20:02:16,501 WARN Included extra file "/etc/supervisor/conf.d/supervisord-apache2.conf" during parsing
Unlinking stale socket /var/run/supervisor.sock
2016-05-12 20:02:16,839 INFO RPC interface 'supervisor' initialized
2016-05-12 20:02:16,839 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2016-05-12 20:02:16,839 INFO supervisord started with pid 1
2016-05-12 20:02:17,847 INFO spawned: 'mysqld' with pid 9
2016-05-12 20:02:17,853 INFO spawned: 'apache2' with pid 10
2016-05-12 20:02:17,957 INFO exited: apache2 (exit status 0; not expected)
2016-05-12 20:02:19,303 INFO success: mysqld entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-05-12 20:02:19,308 INFO spawned: 'apache2' with pid 392
2016-05-12 20:02:19,396 INFO exited: apache2 (exit status 0; not expected)
2016-05-12 20:02:21,404 INFO spawned: 'apache2' with pid 394
2016-05-12 20:02:21,491 INFO exited: apache2 (exit status 0; not expected)
2016-05-12 20:02:24,500 INFO spawned: 'apache2' with pid 395
2016-05-12 20:02:24,586 INFO exited: apache2 (exit status 0; not expected)
2016-05-12 20:02:25,588 INFO gave up: apache2 entered FATAL state, too many start retries too quickly
あなたは 'docker port container_id'と' docker logs container_id'を投稿できます – user2915097
スーパーバイザーの設定ファイルを提供できますか? – KiwenLau