adhocore / docker-lemp

A single container LEMP complete fullstack with latest release of PHP8.0.30/8.1.29/8.2.23/8.3.11, MySQL, nginx, PostgreSQL, mailcatcher, beanstalkd, elasticsearch, memcached, redis, adminer and all you ever need; on top alpine3.17+ for both arm and amd arch
https://hub.docker.com/r/adhocore/lemp
MIT License
156 stars 40 forks source link

adhocore/lemp:8.1 cannot find command 'php-fpm' #32

Closed TechMaster closed 2 years ago

TechMaster commented 2 years ago

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

adhocore commented 2 years ago

could you first try docker pull adhocore/lemp:8.1? :)

TechMaster commented 2 years ago

I change from FROM adhocore/phpfpm:8.1-rc to FROM adhocore/phpfpm:8.1. It works !

Thanks