@noop you can edit the docker/8.0/Dockerfile file and add this:
RUN apt-get install -y php8.0-gd
Save it and then run ./vendor/bin/sail build and ./vendor/bin/sail up -d
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
In laravel documentation we have the following code ‘’’ docker run --rm -v $(pwd):/opt -w /opt laravelsail/php80-composer:latest composer install’’’
We can use this to install sail in a existing project if we dont have composer and php in the local environment. I’m facing an issue I need to add some extensions like ext-gd because some extension in my composer requires this. There are any way to tweak the command to install that php extensions?
Please or to participate in this conversation.