I'm attempting to set up Docker for the first time. I have ensured that my docker client is up to date, as well as running sudo apt-get update on my ubuntu WSL. I keep running into the same error when I attempt to run sail up.
The entire file is quite lengthy, but the first error is in regards to laravel.test and the error is no such service: laravel.test.
The second set of errors are listed below.
#7 138.3 E: Couldn't find any package by glob 'php8.1-cli'
#7 138.3 E: Couldn't find any package by regex 'php8.1-cli'
#7 138.3 E: Unable to locate package php8.1-dev
#7 138.3 E: Couldn't find any package by glob 'php8.1-dev'
#7 138.3 E: Couldn't find any package by regex 'php8.1-dev'
#7 138.3 E: Unable to locate package php8.1-pgsql
#7 138.3 E: Couldn't find any package by glob 'php8.1-pgsql'
#7 138.3 E: Couldn't find any package by regex 'php8.1-pgsql'
#7 138.3 E: Unable to locate package php8.1-sqlite3
#7 138.3 E: Couldn't find any package by glob 'php8.1-sqlite3'
#7 138.3 E: Couldn't find any package by regex 'php8.1-sqlite3'
#7 138.3 E: Unable to locate package php8.1-gd
#7 138.3 E: Couldn't find any package by glob 'php8.1-gd'
#7 138.3 E: Couldn't find any package by regex 'php8.1-gd'
#7 138.3 E: Unable to locate package php8.1-curl
#7 138.3 E: Couldn't find any package by glob 'php8.1-curl'
#7 138.3 E: Couldn't find any package by regex 'php8.1-curl'
#7 138.3 E: Unable to locate package php8.1-imap
#7 138.3 E: Couldn't find any package by glob 'php8.1-imap'
#7 138.3 E: Couldn't find any package by regex 'php8.1-imap'
#7 138.3 E: Unable to locate package php8.1-mysql
#7 138.3 E: Couldn't find any package by glob 'php8.1-mysql'
#7 138.3 E: Couldn't find any package by regex 'php8.1-mysql'
#7 138.3 E: Unable to locate package php8.1-mbstring
#7 138.3 E: Couldn't find any package by glob 'php8.1-mbstring'
#7 138.3 E: Couldn't find any package by regex 'php8.1-mbstring'
#7 138.3 E: Unable to locate package php8.1-xml
#7 138.3 E: Couldn't find any package by glob 'php8.1-xml'
#7 138.3 E: Couldn't find any package by regex 'php8.1-xml'
#7 138.3 E: Unable to locate package php8.1-zip
#7 138.3 E: Couldn't find any package by glob 'php8.1-zip'
#7 138.3 E: Couldn't find any package by regex 'php8.1-zip'
#7 138.3 E: Unable to locate package php8.1-bcmath
#7 138.3 E: Couldn't find any package by glob 'php8.1-bcmath'
#7 138.3 E: Couldn't find any package by regex 'php8.1-bcmath'
#7 138.3 E: Unable to locate package php8.1-soap
#7 138.3 E: Couldn't find any package by glob 'php8.1-soap'
#7 138.3 E: Couldn't find any package by regex 'php8.1-soap'
#7 138.3 E: Unable to locate package php8.1-intl
#7 138.3 E: Couldn't find any package by glob 'php8.1-intl'
#7 138.3 E: Couldn't find any package by regex 'php8.1-intl'
#7 138.3 E: Unable to locate package php8.1-readline
#7 138.3 E: Couldn't find any package by glob 'php8.1-readline'
#7 138.3 E: Couldn't find any package by regex 'php8.1-readline'
#7 138.3 E: Unable to locate package php8.1-ldap
#7 138.3 E: Couldn't find any package by glob 'php8.1-ldap'
#7 138.3 E: Couldn't find any package by regex 'php8.1-ldap'
#7 138.3 E: Unable to locate package php8.1-msgpack
#7 138.3 E: Couldn't find any package by glob 'php8.1-msgpack'
#7 138.3 E: Couldn't find any package by regex 'php8.1-msgpack'
#7 138.3 E: Unable to locate package php8.1-igbinary
#7 138.3 E: Couldn't find any package by glob 'php8.1-igbinary'
#7 138.3 E: Couldn't find any package by regex 'php8.1-igbinary'
#7 138.3 E: Unable to locate package php8.1-redis
#7 138.3 E: Couldn't find any package by glob 'php8.1-redis'
#7 138.3 E: Couldn't find any package by regex 'php8.1-redis'
#7 138.3 E: Unable to locate package php8.1-swoole
#7 138.3 E: Couldn't find any package by glob 'php8.1-swoole'
#7 138.3 E: Couldn't find any package by regex 'php8.1-swoole'
#7 138.3 E: Unable to locate package php8.1-memcached
#7 138.3 E: Couldn't find any package by glob 'php8.1-memcached'
#7 138.3 E: Couldn't find any package by regex 'php8.1-memcached'
#7 138.3 E: Unable to locate package php8.1-pcov
#7 138.3 E: Couldn't find any package by glob 'php8.1-pcov'
#7 138.3 E: Couldn't find any package by regex 'php8.1-pcov'
#7 138.3 E: Unable to locate package php8.1-xdebug
#7 138.3 E: Couldn't find any package by glob 'php8.1-xdebug'
#7 138.3 E: Couldn't find any package by regex 'php8.1-xdebug'```
I'd be grateful for any help regarding this, thanks.
i have the same problem .
i tried apt clean in dockerfile Runtime 8.1 into vendor, but the fail persists
build, build --no-cache, rm images, nothings was successfull.
here my docker-compose.yml
I have create docker environment for Laravel based od php 8.1 with xdebug and nginx:1.21-alpine just put this files in laravel project root dir and start the project on port 80
Now I solved this problem. You must update sail. composer update laravel/sail. If composer throw the error, you must solve your error and update anyway! Searching for other solutions will lead you to a dead end.
i have the same errors using the stock docker file. I get the errors with all three type of context (7.4 8.0 and 8.1)
Updating sail didn't solve anything unfortunately.
I have also checked the link shaungbhone provided, but it didn't help
I have resolved the issue: went for a walk with the dog :)
I can confirm that updating Laravel Sail to the newest version 1.13.7 fixed the issue. I've been still using Dockerfile that I've published to docker folder. So, I have changed context in my docker-compose.yml to
context: ./vendor/laravel/sail/runtimes/8.1
and now all works fine. The app container has been successfully built!