I'm using this docker to build a website in laravel framework and I need to use dompdf library to install by composer. I run this command: sudo docker run --rm -v $(pwd)/web/app:/app composer require barryvdh/laravel-dompdf and having the error: dompdf/dompdf v0.8.2 requires ext-gd * -> the requested PHP extension gd is missing from your system. ..... I have checked the docker which includes GD library but I have no idea why this error comes out. I googled a lot and found this guy was having the same problem in here: https://github.com/composer/composer/issues/5749 Do you guys have any suggestion how to fix this issue in this docker???