If the repository is found in a file (e.g.,
/etc/apt/sources.list.d/docker.list), you can inspect it directly:# Option 1: inspect the docker apt repository
grep -r "download.docker.com" /etc/apt/sources.list /etc/apt/sources.list.d/
# Option 2: check the repository file
cat /etc/apt/sources.list.d/docker.list
If you see multiple entries for
download.docker.com in your APT sources, you can determine which one is being used by checking the pinned priority or by inspecting the package metadata.In the output, look for the distribution name (e.g.,
focal, jammy, bullseye). It will look something like this: