Задать вопрос
@akellaweb

Laravel 8 + Docker + WSL2 под Windows 10 Error failed to solve executor failed running — как решить?

Запускаю файл инструкций docker-compose из PowerShell

$ docker-compose up -d
time="2023-01-09T14:04:26+03:00" level=warning msg="The \"B4mU\" variable is not set. Defaulting to a blank string."
time="2023-01-09T14:04:26+03:00" level=warning msg="The \"Etm\" variable is not set. Defaulting to a blank string." 
time="2023-01-09T14:04:26+03:00" level=warning msg="The \"B4mU\" variable is not set. Defaulting to a blank string."
time="2023-01-09T14:04:26+03:00" level=warning msg="The \"Etm\" variable is not set. Defaulting to a blank string." 
time="2023-01-09T14:04:26+03:00" level=warning msg="The \"B4mU\" variable is not set. Defaulting to a blank string."
time="2023-01-09T14:04:26+03:00" level=warning msg="The \"Etm\" variable is not set. Defaulting to a blank string." 
[+] Running 0/1
 - laravel.test Warning                                                                                                          1.3s
[+] Building 3.7s (8/15)
 => [internal] load build definition from Dockerfile                                                                             0.1s 
 => => transferring dockerfile: 32B                                                                                              0.1s 
 => [internal] load .dockerignore                                                                                                0.1s 
 => => transferring context: 2B                                                                                                  0.0s 
 => [internal] load metadata for docker.io/library/ubuntu:21.04                                                                  1.8s 
 => [ 1/11] FROM docker.io/library/ubuntu:21.04@sha256:ba394fabd516b39ccf8597ec656a9ddd7d0a2688ed8cb373ca7ac9b6fe67848f          0.0s 
 => [internal] load build context                                                                                                0.1s 
 => => transferring context: 99B                                                                                                 0.0s 
 => CACHED [ 2/11] WORKDIR /var/www/html                                                                                         0.0s 
 => CACHED [ 3/11] RUN ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo UTC > /etc/timezone                                0.0s 
 => ERROR [ 4/11] RUN apt-get update     && apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3  1.6s 
------
 > [ 4/11] RUN apt-get update     && apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2     && mkdir -p ~/.gnupg     && chmod 600 ~/.gnupg     && echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf     && apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E5267A6C     && apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C300EE8C     && echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu hirsute main" > /etc/apt/sources.list.d/ppa_ondrej_php.list     && apt-get update     && apt-get install -y php8.0-cli php8.0-dev        php8.0-pgsql php8.0-sqlite3 php8.0-gd        php8.0-curl php8.0-memcached        php8.0-imap php8.0-mysql php8.0-mbstring        php8.0-xml php8.0-zip php8.0-bcmath php8.0-soap        php8.0-intl php8.0-readline php8.0-pcov        php8.0-msgpack php8.0-igbinary php8.0-ldap        php8.0-redis php8.0-swoole     && php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer     && curl -sL https://deb.nodesource.com/setup_16.x | bash -     && apt-get install -y nodejs     && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -     && echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list     && apt-get update     && apt-get install -y yarn     && apt-get install -y mysql-client     && apt-get install -y postgresql-client     && apt-get -y autoremove     && apt-get clean     && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*:
#0 1.226 Ign:1 http://security.ubuntu.com/ubuntu hirsute-security InRelease
#0 1.228 Ign:2 http://archive.ubuntu.com/ubuntu hirsute InRelease
#0 1.282 Err:3 http://security.ubuntu.com/ubuntu hirsute-security Release
#0 1.282   404  Not Found [IP: 185.125.190.39 80]
#0 1.285 Ign:4 http://archive.ubuntu.com/ubuntu hirsute-updates InRelease
#0 1.340 Ign:5 http://archive.ubuntu.com/ubuntu hirsute-backports InRelease
#0 1.396 Err:6 http://archive.ubuntu.com/ubuntu hirsute Release
#0 1.396   404  Not Found [IP: 185.125.190.36 80]
#0 1.452 Err:7 http://archive.ubuntu.com/ubuntu hirsute-updates Release
#0 1.452   404  Not Found [IP: 185.125.190.36 80]
#0 1.506 Err:8 http://archive.ubuntu.com/ubuntu hirsute-backports Release
#0 1.506   404  Not Found [IP: 185.125.190.36 80]
#0 1.514 Reading package lists...
#0 1.535 E: The repository 'http://security.ubuntu.com/ubuntu hirsute-security Release' does not have a Release file.
#0 1.535 E: The repository 'http://archive.ubuntu.com/ubuntu hirsute Release' does not have a Release file.
#0 1.535 E: The repository 'http://archive.ubuntu.com/ubuntu hirsute-updates Release' does not have a Release file.
#0 1.535 E: The repository 'http://archive.ubuntu.com/ubuntu hirsute-backports Release' does not have a Release file.
------
failed to solve: executor failed running [/bin/sh -c apt-get update     && apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2     && mkdir -p ~/.gnupg     && chmod 600 ~/.gnupg     && echo "disable-ipv6" 
>> ~/.gnupg/dirmngr.conf     && apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E5267A6C     && apt-key adv --homedir ~/.gnupg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C300EE8C     && echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu hirsute main" > /etc/apt/sources.list.d/ppa_ondrej_php.list     && apt-get update     && apt-get install -y php8.0-cli php8.0-dev        php8.0-pgsql php8.0-sqlite3 php8.0-gd        php8.0-curl php8.0-memcached        php8.0-imap php8.0-mysql php8.0-mbstring        php8.0-xml php8.0-zip php8.0-bcmath php8.0-soap        php8.0-intl php8.0-readline php8.0-pcov        php8.0-msgpack 
php8.0-igbinary php8.0-ldap        php8.0-redis php8.0-swoole     && php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer     && curl -sL https://deb.nodesource.com/setup_16.x | bash -     && apt-get install -y nodejs     && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -     && echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list     && apt-get update     && apt-get install -y yarn     && apt-get install -y mysql-client  
   && apt-get install -y postgresql-client     && apt-get -y autoremove     && apt-get clean     && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*]: exit code: 100


# For more information: https://laravel.com/docs/sail
version: '3'
services:
    laravel.test:
        build:
            context: ./vendor/laravel/sail/runtimes/8.0
            dockerfile: Dockerfile
            args:
                WWWGROUP: '${WWWGROUP}'
        image: sail-8.0/app
        ports:
            - '${APP_PORT:-80}:80'
        environment:
            WWWUSER: '${WWWUSER}'
            LARAVEL_SAIL: 1
        volumes:
            - '.:/var/www/html'
        networks:
            - sail
        depends_on:
            - mysql
            - redis
            # - selenium
    # selenium:
    #     image: 'selenium/standalone-chrome'
    #     volumes:
    #         - '/dev/shm:/dev/shm'
    #     networks:
    #         - sail
    #     depends_on:
    #         - laravel.test
    mysql:
        image: 'mysql:8.0'
        ports:
            - '${FORWARD_DB_PORT:-3306}:3306'
        environment:
            MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
            MYSQL_DATABASE: '${DB_DATABASE}'
            MYSQL_USER: '${DB_USERNAME}'
            MYSQL_PASSWORD: '${DB_PASSWORD}'
            MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
        volumes:
            - 'sailmysql:/var/lib/mysql'
        networks:
            - sail
    redis:
        image: 'redis:alpine'
        ports:
            - '${FORWARD_REDIS_PORT:-6379}:6379'
        volumes:
            - 'sailredis:/data'
        networks:
            - sail
    # memcached:
    #     image: 'memcached:alpine'
    #     ports:
    #         - '11211:11211'
    #     networks:
    #         - sail
    mailhog:
        image: 'mailhog/mailhog:latest'
        ports:
            - 1025:1025
            - 8025:8025
        networks:
            - sail
networks:
    sail:
        driver: bridge
volumes:
    sailmysql:
        driver: local
    sailredis:
        driver: local


Прошу направить и помочь с решением... бьюсь с этим сутки.
  • Вопрос задан
  • 731 просмотр
Подписаться 1 Средний 1 комментарий
Пригласить эксперта
Ответы на вопрос 1
@akellaweb Автор вопроса
https://serverfault.com/a/1108395 - помогло решение это.
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы