「yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo」で追加したリポジトリ
[root@docker ~]# cat /etc/yum.repos.d/docker-ce.repo
[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[docker-ce-stable-debuginfo]
name=Docker CE Stable - Debuginfo $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/debug-$basearch/stable
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[docker-ce-stable-source]
name=Docker CE Stable - Sources
baseurl=https://download.docker.com/linux/centos/$releasever/source/stable
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[docker-ce-test]
name=Docker CE Test - $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/$basearch/test
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[docker-ce-test-debuginfo]
name=Docker CE Test - Debuginfo $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/debug-$basearch/test
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[docker-ce-test-source]
name=Docker CE Test - Sources
baseurl=https://download.docker.com/linux/centos/$releasever/source/test
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[docker-ce-nightly]
name=Docker CE Nightly - $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/$basearch/nightly
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[docker-ce-nightly-debuginfo]
name=Docker CE Nightly - Debuginfo $basearch
baseurl=https://download.docker.com/linux/centos/$releasever/debug-$basearch/nightly
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[docker-ce-nightly-source]
name=Docker CE Nightly - Sources
baseurl=https://download.docker.com/linux/centos/$releasever/source/nightly
enabled=0
gpgcheck=1
gpgkey=https://download.docker.com/linux/centos/gpg
[root@docker ~]#
規定で[docker-ce-stable]が有効であることがわかる。っでこの[docker-ce-stable]の詳細は下記になる
[root@docker ~]# dnf repolist -v docker-ce-stable
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync, system-upgrade
DNF version: 4.14.0
cachedir: /var/cache/dnf
Docker CE Stable - x86_64 166 kB/s | 31 kB 00:00
Repo-id : docker-ce-stable
Repo-name : Docker CE Stable - x86_64
Repo-status : enabled
Repo-revision : 1694198887
Repo-updated : Sat 09 Sep 2023 03:48:07 AM JST
Repo-pkgs : 111
Repo-available-pkgs: 111
Repo-size : 1.7 G
Repo-baseurl : https://download.docker.com/linux/centos/9/x86_64/stable
Repo-expire : 172,800 second(s) (last: Thu 14 Sep 2023 12:20:14 AM JST)
Repo-filename : /etc/yum.repos.d/docker-ce.repo
Total packages: 111
[root@docker ~]#
リポジトリ[docker-ce-stable]の中身は
[root@docker ~]# dnf list available --disablerepo=* --enablerepo=docker-ce-stable
Last metadata expiration check: 0:00:40 ago on Thu 14 Sep 2023 12:20:14 AM JST.
Available Packages
containerd.io.x86_64 1.6.22-3.1.el9 docker-ce-stable
docker-buildx-plugin.x86_64 0.11.2-1.el9 docker-ce-stable
docker-ce.x86_64 3:24.0.6-1.el9 docker-ce-stable
docker-ce-cli.x86_64 1:24.0.6-1.el9 docker-ce-stable
docker-ce-rootless-extras.x86_64 24.0.6-1.el9 docker-ce-stable
docker-compose-plugin.x86_64 2.21.0-1.el9 docker-ce-stable
docker-scan-plugin.x86_64 0.23.0-3.el9 docker-ce-stable
[root@docker ~]#
となる