Docker installation for RHEL 9

Latest response

[user@localhost yum.repos.d]$ yum-config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
Not root, Subscription Management repositories not updated
Error: This command has to be run with superuser privileges (under the root user on most systems).
[user@localhost yum.repos.d]$ sudo yum-config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
Updating Subscription Management repositories.
Adding repo from: https://download.docker.com/linux/rhel/docker-ce.repo
[user@localhost yum.repos.d]$ ls -la
total 40
drwxr-xr-x. 2 root root 89 Jul 10 16:44 .
drwxr-xr-x. 148 root root 8192 Jul 10 16:28 ..
-rw-r--r--. 1 root root 1883 Jul 10 16:44 docker-ce.repo
-rw-r--r--. 1 root root 1453 Jun 30 07:56 epel.repo
-rw-r--r--. 1 root root 1552 Jun 30 07:56 epel-testing.repo
-rw-r--r--. 1 root root 14212 Jul 10 15:32 redhat.repo
[user@localhost yum.repos.d]$ sudo yum install docker-ce
Updating Subscription Management repositories.
Docker CE Stable - x86_64 780 B/s | 381 B 00:00
Errors during downloading metadata for repository 'docker-ce-stable':
- Status code: 404 for https://download.docker.com/linux/rhel/9/x86_64/stable/repodata/repomd.xml (IP: (masked))
Error: Failed to download metadata for repo 'docker-ce-stable': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Responses