Php bin/magento setup:upgrade inside php container

I want to make a magento upgrade inside php container 7.4, but it has an error because it’s not finding elastic search. How I can make a setup: upgrade for magento with devil box?