私は Docker を初めて使用し、tutum/wordpress イメージに基づいた Wordpress サイトに数か月間取り組んできました。私は先週、wordpress サイトを編集しました。ただし、Web サイトを表示しようとすると、何も表示されません。
最後に機能していた先週から何も変更していません。UbuntuサーバーにSSHで問題なく接続できます。コンテナが実行中であることがわかり、コンテナにアタッチできます。コンテナに入ったら、Apache と MySQL が実行されていることを確認しました。ファイル システムをナビゲートできますが、Wordpress はまだそこにあります。
Web からコンテナーにアクセスできないようですが、どこからトラブルシューティングを開始すればよいか途方に暮れています。
更新: Supervisord と apache に問題があるようです。docker のログには、再試行が多すぎるために apache が致命的な状態になっていることが示されています。ただし、sudo service apache2 status を使用すると、Apache が実行中であることが示されます。/etc/init.d/apache2 stop コマンドを発行した後、Apache はまだ実行されています。私はそれを止めることができません。ps -A 実行中のApacheは表示されず、スーパーバイザーのみが表示されます。私はまだかなり混乱しています。
Docker Port: 80/tcp -> 0.0.0.0:80
Docker ログ:
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