Php-curl not installing

I have nextcloud running in docker and want to install php-curl but when trying to install it I get this error:

root@2c43159a2c80:/var/www/html# apt install php7.2-curl
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package php7.2-curl
E: Couldn’t find any package by glob ‘php7.2-curl’
E: Couldn’t find any package by regex ‘php7.2-curl’
root@2c43159a2c80:/var/www/html# apt install php-curl
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package php-curl is a virtual package provided by:
php7.3-curl 7.3.14-1~deb10u1 [Not candidate version]
php7.3-curl 7.3.11-1~deb10u1 [Not candidate version]

E: Package ‘php-curl’ has no installation candidate

Wrong version.

I think it is ok. Test

If it not works please post your package-lists (sources.list) and output of “uname -a”.

Seems you have php7.3 installed. Try

apt install php7.3-curl