On Amazon Linux 2022, install wget.
yum install wget -y
I get asked for gpg, how can i just agree in docker. I suspect, that this poses a problem.
Amazon Linux 2022 repository 1.7 MB/s | 1.8 kB 00:00
Importing GPG key 0xAFAA0026:
Userid : "Amazon Linux <amazon-linux@amazon.com>"
Fingerprint: 340E 0444 139D EA20 2832 0DD1 F929 04D8 BBBB 0026
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-amazon-linux-2022