I'm trying to set the laravel 5.6
in Docker image, but when executing the command:
docker run -it --rm \
-v $(pwd):/app {user_dockerHub}/docker-laravel \
composer create-project laravel/laravel app
I'm getting the following error:
Problem 1
- phpunit/phpunit 7.2.2 requires phpunit/php-code-coverage ^6.0.7 -> satisfiable by phpunit/php-code-coverage[6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.2.3 requires phpunit/php-code-coverage ^6.0.7 -> satisfiable by phpunit/php-code-coverage[6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.2.4 requires phpunit/php-code-coverage ^6.0.7 -> satisfiable by phpunit/php-code-coverage[6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.2.5 requires phpunit/php-code-coverage ^6.0.7 -> satisfiable by phpunit/php-code-coverage[6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.2.6 requires phpunit/php-code-coverage ^6.0.7 -> satisfiable by phpunit/php-code-coverage[6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.2.7 requires phpunit/php-code-coverage ^6.0.7 -> satisfiable by phpunit/php-code-coverage[6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.2.x-dev requires phpunit/php-code-coverage ^6.0.7 -> satisfiable by phpunit/php-code-coverage[6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.3.0 requires phpunit/php-code-coverage ^6.0.7 -> satisfiable by phpunit/php-code-coverage[6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.3.1 requires phpunit/php-code-coverage ^6.0.7 -> satisfiable by phpunit/php-code-coverage[6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.3.2 requires phpunit/php-code-coverage ^6.0.7 -> satisfiable by phpunit/php-code-coverage[6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.3.3 requires phpunit/php-code-coverage ^6.0.7 -> satisfiable by phpunit/php-code-coverage[6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.3.4 requires phpunit/php-code-coverage ^6.0.7 -> satisfiable by phpunit/php-code-coverage[6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.3.5 requires phpunit/php-code-coverage ^6.0.7 -> satisfiable by phpunit/php-code-coverage[6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.3.x-dev requires phpunit/php-code-coverage ^6.0.7 -> satisfiable by phpunit/php-code-coverage[6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.4.x-dev requires phpunit/php-code-coverage ^6.0.7 -> satisfiable by phpunit/php-code-coverage[6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.2.0 requires phpunit/php-code-coverage ^6.0.6 -> satisfiable by phpunit/php-code-coverage[6.0.6, 6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.2.1 requires phpunit/php-code-coverage ^6.0.6 -> satisfiable by phpunit/php-code-coverage[6.0.6, 6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.0.3 requires phpunit/php-code-coverage ^6.0.1 -> satisfiable by phpunit/php-code-coverage[6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.0.x-dev requires phpunit/php-code-coverage ^6.0.1 -> satisfiable by phpunit/php-code-coverage[6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.1.0 requires phpunit/php-code-coverage ^6.0.1 -> satisfiable by phpunit/php-code-coverage[6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.1.1 requires phpunit/php-code-coverage ^6.0.1 -> satisfiable by phpunit/php-code-coverage[6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.1.2 requires phpunit/php-code-coverage ^6.0.1 -> satisfiable by phpunit/php-code-coverage[6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.1.3 requires phpunit/php-code-coverage ^6.0.1 -> satisfiable by phpunit/php-code-coverage[6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.1.4 requires phpunit/php-code-coverage ^6.0.1 -> satisfiable by phpunit/php-code-coverage[6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.1.5 requires phpunit/php-code-coverage ^6.0.1 -> satisfiable by phpunit/php-code-coverage[6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.1.x-dev requires phpunit/php-code-coverage ^6.0.1 -> satisfiable by phpunit/php-code-coverage[6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.0.0 requires phpunit/php-code-coverage ^6.0 -> satisfiable by phpunit/php-code-coverage[6.0.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.0.1 requires phpunit/php-code-coverage ^6.0 -> satisfiable by phpunit/php-code-coverage[6.0.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.x-dev].
- phpunit/phpunit 7.0.2 requires phpunit/php-code-coverage ^6.0 -> satisfiable by phpunit/php-code-coverage[6.0.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.x-dev].
- phpunit/php-code-coverage 6.0.x-dev requires ext-xmlwriter * -> the requested PHP extension xmlwriter is missing from your system.
- phpunit/php-code-coverage 6.0.7 requires ext-xmlwriter * -> the requested PHP extension xmlwriter is missing from your system.
- phpunit/php-code-coverage 6.0.6 requires ext-xmlwriter * -> the requested PHP extension xmlwriter is missing from your system.
- phpunit/php-code-coverage 6.0.5 requires ext-xmlwriter * -> the requested PHP extension xmlwriter is missing from your system.
- phpunit/php-code-coverage 6.0.4 requires ext-xmlwriter * -> the requested PHP extension xmlwriter is missing from your system.
- phpunit/php-code-coverage 6.0.3 requires ext-xmlwriter * -> the requested PHP extension xmlwriter is missing from your system.
- phpunit/php-code-coverage 6.0.2 requires ext-xmlwriter * -> the requested PHP extension xmlwriter is missing from your system.
- phpunit/php-code-coverage 6.0.1 requires ext-xmlwriter * -> the requested PHP extension xmlwriter is missing from your system.
- phpunit/php-code-coverage 6.0.0 requires ext-xmlwriter * -> the requested PHP extension xmlwriter is missing from your system.
- Installation request for phpunit/phpunit ^7.0 -> satisfiable by phpunit/phpunit[7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.0.x-dev, 7.1.0, 7.1.1, 7.1.2, 7.1.3, 7.1.4, 7.1.5, 7.1.x-dev, 7.2.0, 7.2.1, 7.2.2, 7.2.3, 7.2.4, 7.2.5, 7.2.6, 7.2.7, 7.2.x-dev, 7.3.0, 7.3.1, 7.3.2, 7.3.3, 7.3.4, 7.3.5, 7.3.x-dev, 7.4.x-dev].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php7/php.ini
- /etc/php7/conf.d/00_ctype.ini
- /etc/php7/conf.d/00_curl.ini
- /etc/php7/conf.d/00_dom.ini
- /etc/php7/conf.d/00_json.ini
- /etc/php7/conf.d/00_mbstring.ini
- /etc/php7/conf.d/00_mcrypt.ini
- /etc/php7/conf.d/00_opcache.ini
- /etc/php7/conf.d/00_openssl.ini
- /etc/php7/conf.d/00_pdo.ini
- /etc/php7/conf.d/00_session.ini
- /etc/php7/conf.d/00_tokenizer.ini
- /etc/php7/conf.d/00_xml.ini
- /etc/php7/conf.d/01_mysqlnd.ini
- /etc/php7/conf.d/01_pdo_pgsql.ini
- /etc/php7/conf.d/01_pdo_sqlite.ini
- /etc/php7/conf.d/01_phar.ini
- /etc/php7/conf.d/02_pdo_mysql.ini
You can also run 'php --ini' inside terminal to see which files are used by PHP in CLI mode.
Dockerfile
FROM alpine:3.7
RUN apk --update add --no-cache \
nginx \
curl \
supervisor \
php7 \
php7-ctype \
php7-curl \
php7-dom \
php7-fpm \
php7-json \
php7-mbstring \
php7-mcrypt \
php7-opcache \
php7-openssl \
php7-pdo \
php7-pdo_mysql \
php7-pdo_pgsql \
php7-pdo_sqlite \
php7-phar \
php7-session \
php7-tokenizer \
php7-xml
RUN rm -Rf /var/cache/apk/*
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
COPY nginx.conf /etc/nginx/nginx.conf
COPY supervisord.conf /etc/supervisord.conf
RUN mkdir -p /app
WORKDIR /app
RUN chmod -R 755 /app
EXPOSE 82 445
CMD ["supervisord", "-c", "/etc/supervisord.conf"]
I have already searched the web, tested possible solutions and did not have a satisfactory result.
If someone has already had this problem and wants to share it, I thank them right away.