lil*_*get 5 mutex docker dockerfile docker-compose
我的 Docker 容器不断重新启动,并出现以下错误:
Run Code Online (Sandbox Code Playgroud)Operation not supported: AH00023: Couldn't create the mpm-accept mutex (95)Operation not supported: could not create accept mutex
我在网上尝试了一些解决方案,包括platform: linux/amd64切换 docker restart 等......
这个解决方案对我不起作用。
但是我无法编辑文件,此处httpd.conf提供了解决方案,因为我无法访问 docker 映像来执行此操作,因为它不断重新启动。
现在有人如何超越这个错误吗?我在Mac上M1。
Dockerfile:
FROM 242425.a.a.eu-central-1.amazonaws.com/app-php:7.4
ARG COMPOSER_TOKEN
ENV COMPOSER_TOKEN=${COMPOSER_TOKEN}
ARG GITHUB_OAUTH_TOKEN
ENV GITHUB_OAUTH_TOKEN=${GITHUB_OAUTH_TOKEN}
ARG ENVIRONMENT=""
ENV ENVIRONMENT=${ENVIRONMENT}
RUN apt-get --yes update && apt-get --yes --no-install-recommends install supervisor
RUN if [ "${ENVIRONMENT}" = "local" ]; \
then pecl install xdebug && docker-php-ext-enable xdebug; \
fi
RUN mkdir /root/.composer
RUN if [ "${ENVIRONMENT}" != "local" ]; \
then echo "${COMPOSER_TOKEN}" > /root/.composer/auth.json; \
fi
# Configure Apache
COPY ./config/aws/apache2/breitling.conf /etc/apache2/sites-enabled
# Move application in the correct folder
COPY . /var/www/html/
COPY ./config/aws/secrets_manager/${ENVIRONMENT}/map.csv /usr/local/etc/secrets-map.csv
COPY ./config/aws/supervisor/messenger-worker.conf /etc/supervisor/conf.d
# Fix permissions
RUN setfacl -dR \
-m u:"www-data":rwX \
-m g:"www-data":rwX \
-m u:$(whoami):rwX \
-m o::rwX \
/var/www/html/var
RUN setfacl -R \
-m u:"www-data":rwX \
-m g:"www-data":rwX \
-m u:$(whoami):rwX \
-m o::rwX \
/var/www/html/var
RUN rm -rf \
/var/www/html/var/cache/prod \
/var/www/html/var/cache/test \
/var/www/html/var/cache/dev \
> /dev/null 2>&1
RUN mkdir -p \
/var/www/html/var/cache/prod \
/var/www/html/var/cache/test \
/var/www/html/var/cache/dev \
> /dev/null 2>&1
# Build application
RUN if [ "${ENVIRONMENT}" != "local" ]; \
then /var/www/html/bin/app_build.sh; \
fi
# BAWS-392
RUN if [ "${ENVIRONMENT}" != "local" ]; then rm -rf /root/.composer/cache; fi
RUN if [ "${ENVIRONMENT}" != "local" ]; then find /var/www/html/vendor -type d -name .git -delete; fi
ENTRYPOINT /var/www/html/bin/entrypoint.aws.sh
Run Code Online (Sandbox Code Playgroud)
lil*_*get 22
感谢@Bets,通过将以下内容添加到 Dockerfile 中解决了问题:
RUN echo "Mutex posixsem" >> /etc/apache2/apache2.conf
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6448 次 |
| 最近记录: |