前提・実現したいこと
Macのdockerで、MySQL+wordpressの環境を構築しています。
doker-compose.ymlに記載し実行したところ、処理が途中で止まってしまう理由がわかっていません。
コンテナの作成はできており、コンテナ起動して入ることもできます
ヒントなどいただければ幸いです。
発生している問題・エラーメッセージ
1.docker-compose up のあとに以下が表示され止まってしまう
wp-mysql | 190519 8:52:19 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled wp-mysql | 190519 8:52:19 [Note] mysqld (mysqld 5.5.62) starting as process 1 ... wp-mysql | 190519 8:52:19 [Note] Plugin 'FEDERATED' is disabled. wp-mysql | 190519 8:52:19 InnoDB: The InnoDB memory heap is disabled wp-mysql | 190519 8:52:19 InnoDB: Mutexes and rw_locks use GCC atomic builtins wp-mysql | 190519 8:52:19 InnoDB: Compressed tables use zlib 1.2.11 wp-mysql | 190519 8:52:19 InnoDB: Using Linux native AIO wp-mysql | 190519 8:52:19 InnoDB: Initializing buffer pool, size = 128.0M wp-mysql | 190519 8:52:19 InnoDB: Completed initialization of buffer pool wp-mysql | 190519 8:52:19 InnoDB: highest supported file format is Barracuda. wp-mysql | 190519 8:52:19 InnoDB: Waiting for the background threads to start wordpress | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.27.0.3. Set the 'ServerName' directive globally to suppress this message wordpress | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.27.0.3. Set the 'ServerName' directive globally to suppress this message wordpress | [Sun May 19 08:52:19.657256 2019] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) PHP/7.2.18 configured -- resuming normal operations wordpress | [Sun May 19 08:52:19.657341 2019] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND' wp-mysql | 190519 8:52:20 InnoDB: 5.5.62 started; log sequence number 1595675 wp-mysql | 190519 8:52:20 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306 wp-mysql | 190519 8:52:20 [Note] - '0.0.0.0' resolves to '0.0.0.0'; wp-mysql | 190519 8:52:20 [Note] Server socket created on IP: '0.0.0.0'. wp-mysql | 190519 8:52:20 [Warning] 'proxies_priv' entry '@ root@7a184d33ad00' ignored in --skip-name-resolve mode. wp-mysql | 190519 8:52:20 [Note] Event Scheduler: Loaded 0 events wp-mysql | 190519 8:52:20 [Note] mysqld: ready for connections. wp-mysql | Version: '5.5.62' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server (GPL)
ここまでで停止します。
2.Control+C で処理の停止
3.docker ps -a で確認すると作成はされている
4.docker start し ブラウザにて localhost:9080 でアクセスするとwordpress画面が表示される
docker-compose.yml
docker
1version: '2' 2services: 3 mysql: 4 container_name: wp-mysql 5 restart: always 6 image: mysql:5.5 7 volumes: 8 - ./mysql:/var/lib/mysql 9 - ./tmp/mysqld:/var/run/mysqld 10 environment: 11 - "MYSQL_DATABASE=wordpress" 12 - "MYSQL_ROOT_PASSWORD=wordpress" 13 ports: 14 - "9000:3306" 15 wordpress: 16 container_name: wordpress 17 restart: always 18 image: wordpress:latest 19 volumes: 20 - ./config:/var/www/html 21 ports: 22 - "9080:80" 23 depends_on: 24 - mysql 25 links: 26 - mysql
試したこと
docker-compose up 処理の中断後に以下でブラウザ表示は可能
1.docker start wordpress wp-mysql
2.docker exec -it wordpress bash
3.ブラウザで localhost:9080 にアクセスして初期設定が表示される
補足情報(FW/ツールのバージョンなど)
MAC
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/05/19 14:54