Support the ongoing development of Laravel.io →
Configuration Laravel

hello, I created a laravel app in a docker container but to use some packages I need to install php extensions. I know that they are added in the dockerfile, but if I try to use the command "docker-php-ext-install" an error appears:

[ 5/12] RUN docker-php-ext-install -y dom: #9 0.383 /bin/sh: 1: docker-php-ext-install: not founddo

Last updated 2 years ago.
0
moderator

I'm not sure but should suspect that you doesn't need the -y flag.

So only: docker-php-ext-install dom

If that doesn't solve your problem: can you share the dockerfile line and more of the error you get?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Lorenzo Longhi lerma4 Joined 15 Oct 2021

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.