前提・実現したいこと
https://github.com/docker-library/wordpress/tree/master/php7.3/apache
こちらのDockerfileとdocker-entrypoint.shを利用して
docker-compose.ymlからコンテナを立ち上げたいです。
Dockerfileとdocker-entrypoint.shはmac上の同じフォルダに置いています。
発生している問題・エラーメッセージ
docker-compose up -d --buildすると以下のエラーが出ます。
mysqlのコンテナは立ち上がり、wpコンテナは立ち上がりません。
ERROR: for wordpressimage1 Cannot start service wordpressimage: b'OCI runtime create failed: container_linux.go:344: starting container process caused "exec: \"docker-entrypoint.sh\": executable file not found in $PATH": unknown' ERROR: for wordpressimage Cannot start service wordpressimage: b'OCI runtime create failed: container_linux.go:344: starting container process caused "exec: \"docker-entrypoint.sh\": executable file not found in $PATH": unknown' ERROR: Encountered errors while bringing up the project.
該当のソースコード
docker
1 2version: "2" 3services: 4 mysql: 5 image: mysql:5.7 6 environment: 7 MYSQL_ROOT_PASSWORD: root 8 restart: always 9 logging: 10 options: 11 max-size: 5m 12 max-file: "10" 13 14 wordpressimage: 15 build: 16 context: ./ 17 dockerfile: Dockerfile 18 environment: 19 VIRTUAL_HOST: example.com 20 WORDPRESS_DB_PASSWORD: root 21 CERT_NAME: default 22 depends_on: 23 - mysql 24 restart: always 25 tty: true 26 logging: 27 options: 28 max-size: 5m 29 max-file: "10" 30 31networks: 32 default: 33 external: 34 name: shared 35
調査したこと
ローカルPCのmacターミナル上で
which.sh
1 2$ which exec 3
として検索してみましたが見つかりませんでした。
質問
原因、修正点、確認すべきところなどヒントをいただけましたら嬉しいです。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/07/28 10:46