我正在尝试使用php-fpm构建一个docker-container,并且遇到一个我不理解的错误
我有一个非常基本的Dockerfile,只是获取了图像并对其进行了测试:
FROM phalconphp/php:5.6
ADD endless.php /var/www/
WORKDIR /var/www
CMD endless.php
我正在docker-compose.yml中像这样运行它:
version: '2'
services:
phalcon:
tty: true
build: phalcon
构建工作正常,但是docker-compose up
将导致以下错误:
phalcon_1 | PHP Warning: Unexpected character in input: '' (ASCII=15) state=0 in /bin/dash on line 65
phalcon_1 |
phalcon_1 | Warning: Unexpected character in input: '' (ASCII=15) state=0 in /bin/dash on line 65
phalcon_1 |
phalcon_1 | PHP Warning: Unexpected character in input: '' (ASCII=1) state=0 in /bin/dash on line 65
phalcon_1 |
phalcon_1 | Warning: Unexpected character in input: '' (ASCII=1) state=0 in /bin/dash on line 65
phalcon_1 |
phalcon_1 | PHP Warning: Unexpected character in input: ' in /bin/dash on line 65
phalcon_1 |
phalcon_1 | Warning: Unexpected character in input: ' in /bin/dash on line 65
phalcon_1 |
phalcon_1 | PHP Warning: Unexpected character in input: ' in /bin/dash on line 65
phalcon_1 |
phalcon_1 | Warning: Unexpected character in input: ' in /bin/dash on line 65
phalcon_1 |
phalcon_1 | PHP Parse error: syntax error, unexpected w��' (T_STRING) in /bin/dash on line 65
phalcon_1 |
phalcon_1 | Parse error: syntax error, unexpected w��' (T_STRING) in /bin/dash on line 65
我使用Php:5.6映像尝试了相同的Dockerfile,并且一切正常。