Unable to install php-gd with php8.1 on ubuntu 22.04

If I try to run anything like apt install php8.1-gd or php8-gd or php-gd I run into the same error, which says E: Package ‘php-blabla’ has no installation candidate

System info:

  • Ubuntu 22.04
  • PHP 8.1.17
  • Running in docker container

Packages I’ve tried so far: apt-get install libgd3, apt install php8.1-gd, apt install php8.2-gd, apt install php8.0-gd, apt install php8-gd, apt-get install php_gd2

Has anyone an idea how to fix my problem?