Fixed by updating the docker version, it seems sail is not compatible with some older versions of docker. Updating docker will do the trick.
ERROR: Service 'laravel.test' failed to build
Sail Version: 1.12.2 Laravel Version: 8x PHP Version: 8.0 OS: Windows / Linux / macOS 10.13.6
Description: When I run ./vendor/bin/sail up I get the below error
=> ERROR [ 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 5.8s
Building laravel.test
[+] Building 8.8s (8/15)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.35kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:21.04 3.3s
=> [internal] load build context 0.1s
=> => transferring context: 869B 0.0s
=> [ 1/11] FROM docker.io/library/ubuntu:21.04@sha256:26cd4ff32a9c031eaca3d6f589a7799f28b34a539 0.0s
=> => resolve docker.io/library/ubuntu:21.04@sha256:26cd4ff32a9c031eaca3d6f589a7799f28b34a539e1 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/timezon 0.0s
=> ERROR [ 4/11] RUN apt-get update && apt-get install -y gnupg gosu curl ca-certificates z 5.2s
[ 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 php8.0-xdebug && 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/*:
#6 1.081 Get:1 http://archive.ubuntu.com/ubuntu hirsute InRelease [269 kB]
#6 1.170 Get:2 http://security.ubuntu.com/ubuntu hirsute-security InRelease [110 kB]
#6 3.165 Err:2 http://security.ubuntu.com/ubuntu hirsute-security InRelease
#6 3.165 gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
#6 3.550 Err:1 http://archive.ubuntu.com/ubuntu hirsute InRelease
#6 3.550 gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
#6 3.621 Get:3 http://archive.ubuntu.com/ubuntu hirsute-updates InRelease [115 kB]
#6 4.733 Err:3 http://archive.ubuntu.com/ubuntu hirsute-updates InRelease
#6 4.733 gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
#6 4.829 Get:4 http://archive.ubuntu.com/ubuntu hirsute-backports InRelease [101 kB]
#6 5.136 Err:4 http://archive.ubuntu.com/ubuntu hirsute-backports InRelease
#6 5.136 gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
#6 5.143 Reading package lists...
#6 5.163 W: GPG error: http://security.ubuntu.com/ubuntu hirsute-security InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
#6 5.163 E: The repository 'http://security.ubuntu.com/ubuntu hirsute-security InRelease' is not signed.
#6 5.163 W: GPG error: http://archive.ubuntu.com/ubuntu hirsute InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
#6 5.163 E: The repository 'http://archive.ubuntu.com/ubuntu hirsute InRelease' is not signed.
#6 5.164 W: GPG error: http://archive.ubuntu.com/ubuntu hirsute-updates InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
#6 5.164 E: The repository 'http://archive.ubuntu.com/ubuntu hirsute-updates InRelease' is not signed.
#6 5.164 W: GPG error: http://archive.ubuntu.com/ubuntu hirsute-backports InRelease: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed
#6 5.165 E: The repository 'http://archive.ubuntu.com/ubuntu hirsute-backports InRelease' is not signed.
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 php8.0-xdebug && php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer && curl -sL https://deb.nodesource.com/setup_$NODE_VERSION.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 ERROR: Service 'laravel.test' failed to build
Please or to participate in this conversation.