0

每次在 Windows CLI 中执行 docker-compose up -d 命令时,我都会收到此错误。请帮我解决这个问题。我正在使用的 Docker-compose.yml 文件是 Laminas 框架应用程序的一部分,并且是在那里预先编写的。这是 docker-compose.yml 代码:

laminas:
  build: .
  dockerfile: Dockerfile
  ports:
   - "8081:80"
  volumes:
   - .:/var/www

这是 Dockerfile 代码:

FROM php:7.3-apache

LABEL maintainer="getlaminas.org" \
    org.label-schema.docker.dockerfile="/Dockerfile" \
    org.label-schema.name="Laminas MVC Skeleton" \
    org.label-schema.url="https://docs.getlaminas.org/mvc/" \
    org.label-schema.vcs-url="https://github.com/laminas/laminas-mvc-skeleton"

## Update package information
RUN apt-get update

## Configure Apache
RUN a2enmod rewrite \
    && sed -i 's!/var/www/html!/var/www/public!g' /etc/apache2/sites-available/000-default.conf \
    && mv /var/www/html /var/www/public

## Install Composer
RUN curl -sS https://getcomposer.org/installer \
  | php -- --install-dir=/usr/local/bin --filename=composer

###
## PHP Extensisons
###

## Install zip libraries and extension
RUN apt-get install --yes git zlib1g-dev libzip-dev \
    && docker-php-ext-install zip

## Install intl library and extension
RUN apt-get install --yes libicu-dev \
    && docker-php-ext-configure intl \
    && docker-php-ext-install intl

WORKDIR /var/www
4

0 回答 0