You may run into PHP dependencies errors after updating Composer files with Docker images.
In the Laravel docker-compose.yml file update the build/context runtime line to the required PHP version.
Example
context: ./vendor/laravel/sail/runtimes/8.2
For clarity of the image file name update the build/image line to reflect the new version.
Example
image: sail-8.2/app
After updating the above run the command to pull the new image.
sail build --no-cache