docker-compose up
出现错误提示:Interactive shell
参考链接 :
https://blog.csdn.net/bingbingtea/article/details/81587173
http://www.itkeyword.com/doc/5366101128542402963/interactive-shell-using-docker-compose
加入: 用 /bin/sh 启动。
entrypoint: /bin/sh
stdin_open: true # -i
tty: true # -t;
`
php:
build: ./php
links:
- mysql:mysql
volumes:
- ./src:/var/www
- ./php/php.ini:/usr/local/etc/php/php.ini
- ./php/php-fpm.conf:/usr/local/etc/php-fpm.d/www.conf
ports:
- 9900:9000
entrypoint: /bin/sh
stdin_open: true # 出现 Interactive shell -i
tty: true # -t;
`