adhocore/lemp:8.1 cannot find command 'php-fpm'
TechMaster opened this issue · 2 comments
TechMaster commented
Hi,
I run this command using docker image adhocore/lemp:8.1
docker run -p 8080:80 -p 8888:88 -v `pwd`:/var/www/html \
-e MYSQL_ROOT_PASSWORD=123 -e MYSQL_DATABASE=db \
-e MYSQL_USER=user -e MYSQL_PASSWORD=123 \
--name lemp --platform linux/amd64 -d adhocore/lemp:8.1
docker container cannot run PHP file. What I saw in the log of container
2022-06-07 05:23:07,729 INFO spawnerr: can't find command 'php-fpm'
2022-06-07 05:23:04,705 INFO spawnerr: can't find command 'php-fpm'
2022-06-07 05:23:07,730 INFO gave up: php-fpm entered FATAL state, too many start retries too quickly
if I type
# which php-fpm
it returns nothing. It is likely that php-fpm is failed to installed.
If I use docker image adhocore/lemp:8.0 then it works.
docker run -p 8080:80 -p 8888:88 -v `pwd`:/var/www/html \
-e MYSQL_ROOT_PASSWORD=123 -e MYSQL_DATABASE=db \
-e MYSQL_USER=user -e MYSQL_PASSWORD=123 \
--name lemp --platform linux/amd64 -d adhocore/lemp:8.0
if I type
# which php-fpm
/usr/local/sbin/php-fpm
My environment
- Apple Mac M1 Pro
- Docker Engine: 20.10.16,
adhocore commented
could you first try docker pull adhocore/lemp:8.1
? :)
TechMaster commented
I change from FROM adhocore/phpfpm:8.1-rc
to FROM adhocore/phpfpm:8.1
. It works !
Thanks